Skiba <abx### [at] babilon org> wrote:
> #local C=0;
> #local inc=function(C){C+1};
>
> Is this supposed to work or not ? It not works with becouse of error message
> "'parameter identifier' expected". I looked in chapters about functions for
> 'parameter identifier' but can't find any appropriate note so expect it has
> similiar behavior to macro parameters.
Well, "C" is a parse time constant so it will of course as one would expect be
substituted for its value:
#local inc=function(0){0+1};
The is exactly the same way as it works for every other scene (time) object.
Remember that functions are *not* macros but just another 'object' type!
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povray org
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|