default {
state_entry() {
integer a = 7;
integer b = a = 3;
llOwnerSay((string)b);
}
}
This works correctly under LSL-Mono and prints 3. Under LSL-SLua it gives an "unable to cast!" runtime error. Interestingly, doing "b = (a = 3)" works correctly under both VMs.
The same applies for all other assignments as expressions as well (+=, -=, *=, /=, %=).