POV-Ray : Newsgroups : povray.newusers : local variables in macros : Re: local variables in macros Server Time
5 Sep 2024 08:17:45 EDT (-0400)
  Re: local variables in macros  
From: Elias Pschernig
Date: 21 May 2001 06:57:43
Message: <3b08f4a7@news.povray.org>
> Some notes:
> - As per docs, you should use #declare var_pos... within the loop to
> redefine the local variable.

Yes, you're right, else I get an error message about an undefined
variable.

> - Even tough the docs don't properly cover what happens when you use
#local
> to redefine local variables within loop, it seems to work equivalently
to
> the above. Note though, that MegaPOV seems have trouble with #undef
after
> doing this. 3.1g works seems to treat #local for the purpose of
redefining

I'm not planning on using #undef anywhere I think.

> local variables just as it does #declare. I suspect that it may result
in
> strangeness as well. ;)

I will post here about every strangeness I will come across with POV
code ;)

Elias Pschernig


Post a reply to this message

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