POV-Ray : Newsgroups : povray.general : paramters of macros (POV-Ray 3.1 bug?) : Re: paramters of macros (POV-Ray 3.1 bug?) Server Time
13 Aug 2024 17:31:03 EDT (-0400)
  Re: paramters of macros (POV-Ray 3.1 bug?)  
From: Friedemann Schmidt
Date: 16 Jul 1998 00:59:47
Message: <35ad7a93.8166967@news.povray.org>
Nathan Kopp <nk8### [at] ltuedu> wrote:
>I think that the first paragraph that you quoted is talking about when you
>call the macro like the following:
>
>#declare X = 1;
>Macro(X+50)
>
>In this case, a new local symbol is created and no value is returned.  I
>haven't read the documentation yet, so it may not be clear on this point.

Yes, that's right. because X+50 is a constant RVALUE, that can't be
changed. The documentation says:

"Values may only be returned via a parameter if the parameter is an
IDENTIFIER. Parameters that are RVALUES are constant values that
cannot return information"



Bye,
Friedemann


Friedemann Schmidt
Fri### [at] Stonescom
Raytracing-Gallery: http://www.rz.fhtw-berlin.de/~s0049669


Post a reply to this message

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