Using
LSL:Luau
when incrementing a integer declared at script level, incrementing it with
int++
seems to do nothing.
++int
seems to work the same across both
LSL:Mono
and
LSL:Luau
Reproduction steps
The following script halts in
LSL:Luau
:
default {
state_entry() {
integer i;
while(i < 1) {
i++;
llOwnerSay("Ping " + (string)i);
llSleep(1.0);
}
}
}
This one does not:
integer i;
default {
state_entry() {
while(i < 1) {
i++;
llOwnerSay("Ping " + (string)i);
llSleep(1.0);
}
}
}