POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: Status of Moray? Server Time
2 May 2024 00:54:32 EDT (-0400)
  Re: Status of Moray?  
From: Shay
Date: 6 Sep 2007 19:03:57
Message: <46e0875d$1@news.povray.org>
Zeger Knaepen wrote:
>>
>> [2] ie "Pass by reference" bug.
> 
> that's a bug? I thought it was a feature.

Try this code:

#macro Pass_By_Reference ( VARIABLE )
   #local VARIABLE = 9;
   #local Something = str(10,0,0);
#end

#local Counter = 0;
#while ( Counter < 100000 )
   #local Var = 12;
   Pass_By_Reference ( Var )
   #if ( Var = 9 )
     // do nothing
     // worked as intended
   #else
     #debug "didn't work this time\n"
   #end
     #local Counter = Counter + 1;
#end


Post a reply to this message

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