POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time
5 Jul 2024 15:31:32 EDT (-0400)
  Re: pass variable from macro?  
From: nemesis
Date: 26 Jan 2008 05:15:00
Message: <web.479b0704a2fa4d32d77696980@news.povray.org>
"[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.

> 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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.