POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time: 4 Jul 2008 23:02:37 GMT
  Re: pass variable from macro?  
From: nemesis
Date: 26 Jan 2008 10:15:00
"[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.

> Am I correct to believe they can be written to represent so-called
> "high-order" functions, which will accept a functions as a variable, and can
> return other functions as a result?

it's not really like Lisp macros, more akin to C "macros"


Post a reply to this message

Copyright 1991-2004 POV-Team™