POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time
5 Jul 2024 15:42:12 EDT (-0400)
  Re: pass variable from macro?  
From: nemesis
Date: 27 Jan 2008 07:35:00
Message: <web.479c7a40a2fa4d32f8eca44b0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> nemesis <nam### [at] gmailcom> wrote:
> > "[GDS|Entropy]" <gds### [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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.