POV-Ray : Newsgroups : povray.beta-test : Function parameter bug : Re: Function parameter bug Server Time
30 Jul 2024 14:25:18 EDT (-0400)
  Re: Function parameter bug  
From: Thorsten Froehlich
Date: 27 Oct 2001 05:48:55
Message: <3bda8307@news.povray.org>
In article <3bd9fd4e@news.povray.org> , "Rune" <run### [at] mobilixnetdk>
wrote:

> But shouldn't the parameters use a different name-space than things declared
> outside of the functions, just like it works with macros?

No, because one is the scene level and the other the parser level.  The
parser values are inserted first by substituting every variable you
declared.  The resulting scene file (which is invisible to you) is the
passed on the the actual parser which only sees the 0.1 as it should because
the "V" has been substituted by "0.1" as you requested.

You mistake is part of the functions are no macros misunderstanding!


    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.