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
|