POV-Ray : Newsgroups : povray.newusers : Returning values from macros : Re: Returning values from macros Server Time
2 May 2024 22:23:58 EDT (-0400)
  Re: Returning values from macros  
From: dick balaska
Date: 2 Jun 2016 21:51:42
Message: <5750e2ae$1@news.povray.org>
Am 2016-06-02 21:37, also sprach Bald Eagle:
> 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" ?

Anti-patterns are apparently not supported in this case.


-- 
dik


Post a reply to this message

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