POV-Ray : Newsgroups : povray.newusers : Returning values from macros : Re: Returning values from macros Server Time
2 May 2024 11:56:17 EDT (-0400)
  Re: Returning values from macros  
From: Bald Eagle
Date: 2 Jun 2016 21:40:06
Message: <web.5750df7576b80bcd5e7df57c0@news.povray.org>
With respect to scope,

I have a variable that I declare locally:

#local Steps = ....

I tried to:

#declare Steps = Steps;

and then use Steps outside of the macro - "undeclared identifier"   :(

I can't "hand-off" a local value to a global identifier of the same name?
or "redefine a local variable as a global variable" ?


Post a reply to this message

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