POV-Ray : Newsgroups : povray.general : Global variable changed by Macro without parameters? : Global variable changed by Macro without parameters? Server Time
5 Nov 2024 13:27:04 EST (-0500)
  Global variable changed by Macro without parameters?  
From: Tim Nikias v2 0
Date: 2 Apr 2003 06:30:24
Message: <3e8ac9d0@news.povray.org>
This is what I'm trying to do:
I want global variables, that are affected
by macros, without handing the variables
as parameters to the macro.
To do this, I #declare a variable with
the same name as the global, thus hoping to
overwrite it. Does that work?

I'd think that #declare is global in scope,
and would overwrite another variable with the
same name, but it doesn't seem to do that. I
can't make any other sense from the docs, unless
I've misinterpreted something.

I could cook some sample-scene for this, but
in this case, someone might have an answer for
that just on the fly...

--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde


Post a reply to this message

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