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:31:41 EDT (-0400)
  Re: Very odd effect in an animation...  
From: Rune
Date: 31 Jan 2005 15:48:53
Message: <41fe99b5$1@news.povray.org>
Slime wrote:
>> I'm not 100% sure what you mean by "by reference".
>
> When a variable is passed "by reference," it means that the variable
> you see inside the macro is the same as the one outside the macro; so
> changing it inside the macro affects the value of the original
> variable passed in. When a variable is passed "by value," its value
> is copied into a new variable inside the macro, and changing that
> variable has no effect on the original variable that was passed.

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?

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

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

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