POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time: 24 Jul 2008 20:35:59 GMT
  Re: pass variable from macro?  
From: nemesis
Date: 27 Jan 2008 12:35:00
Warp <warp [at] tagpovrayorg> wrote:
> nemesis <namekuseijin [at] gmailcom> wrote:
> > "[GDS|Entropy]" <gds-entropy [at] hotmailcom> wrote:
> > > So essentially a macro in pov-sdl, when called, returns a code
> > > block/whatever its contents happen to be?
>
> > it doesn't "return" anything:  it textually copies it contents with parameters
> > substituted for real values.
>
>   Not really. POV-Ray doesn't copy anything. When a macro call is encountered
> it jumps to the macro body and continues parsing there. When the macro has
> been parsed, it returns to the origin of the jump.
>
>   The difference can be seen eg. with #locals.

hmm, less bad...


Post a reply to this message

Copyright 1991-2004 POV-Team™