POV-Ray : Newsgroups : povray.advanced-users : Very odd effect in an animation... : Re: Very odd effect in an animation... Server Time
28 Jul 2024 14:32:13 EDT (-0400)
  Re: Very odd effect in an animation...  
From: Slime
Date: 31 Jan 2005 16:22:54
Message: <41fea1ae@news.povray.org>
> This difference I know, but I've never been quite sure, in POV-script, HOW
> you pass a variable by reference and how do you pass it by value?

In POV-Ray, all variables are passed by reference and all non-variables are
passed by value.

mymacro(
    3, // by value
    myvar, // by reference
    myvar + 0 // by value
)

> Also, where in the documentation is the information about passing by
> reference versus passing by value?

Not sure. Probably around wherever macros are explained. Everything I said
in these two posts I either heard on this newsgroup or learned from other
languages.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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