POV-Ray : Newsgroups : povray.general : Request for enhancement : Re: Request for enhancement Server Time
8 Aug 2024 20:20:42 EDT (-0400)
  Re: Request for enhancement  
From: Warp
Date: 5 Dec 2000 05:48:32
Message: <3a2cc7ff@news.povray.org>
Chris Huff <chr### [at] maccom> wrote:
: Well, this *is* impossible without modifying the source

  You should believe Ken... As always :)

  Check this:

#macro assignLocal(Var)
  #local Var
#end

#declare ABC=1;

#macro TestLocal()
  #local ABC=2;
  assignLocal(ABC) = 5;
  #debug concat("Local 'ABC': ", str(ABC,0,0), "\n")
#end

TestLocal()
#debug concat("Global 'ABC': ", str(ABC,0,0), "\n")



: BTW, another problem with that assign() macro: it uses a semicolon, 
: which will prevent you from using objects, textures, etc...

  That solution I present above also solves the semicolon problem.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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