|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> ....
> I got the ole' can't assign an unidentified something or other to Lvalue...
>
> The macro has 2 lines.
> #local Result = array {Val1, Val2};
>
> Result
>
> But somehow it thinks Result hasn't been defined.
>
> So I deleted the #local and the Result, and just left the array.
> Works fine now.
>
> I don't get it.
eg:
#version 3.8;
global_settings {assumed_gamma 1}
box {0,1}
#macro has2lines ()
#local Result = array {1234,5678};
(Result[0], Result[1])
#end
#declare (first,second) = has2lines();
#debug concat("first ",str(first,0,0)," second ",str(second,0,0),"\n")
#warning "end-of-scene"
note (a) you need to provide two return values if you want to assign two values
from the call, and (b) nothing doing w/out parentheses. (and coffee !! :-))
regards, jr.
Post a reply to this message
|
|