POV-Ray : Newsgroups : povray.newusers : local variables in macros : Re: local variables in macros Server Time
4 Nov 2024 23:17:00 EST (-0500)
  Re: local variables in macros  
From: Elias Pschernig
Date: 20 May 2001 11:15:10
Message: <3b07df7e@news.povray.org>
> Ah, your macro enters a territory badly covered by the docs: creating 
a
> local variable with the name of a parameter... Dunno why it behaves 
the way
> it does, or why the +0 helps, though. At least it is not because of 
the
> MegaPOV: I tried it in 3.1g and it did the exact same thing. An easy 
thing
> to fix, though. Just use
> 
>     #local new_pos = ...
> 
> and later
> 
>     tree(new_pos...
> 

Thanks, I will use that. I wanted to avoid a new variable at first, but 
it's a lot better than the +0.

Elias Pschernig


Post a reply to this message

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