Undefine TRUE/FALSE or convert them
planned
Janet Rossini
The LSL variables TRUE and FALSE both work as true in SLua. I'd suggest that rather than auto-define them, they should be left undefined. If not, a not uncommon error will be to type TRUE or FALSE when one meant true or false. Failing that, I'd suggest defining TRUE -> true and FALSE -> false. Thanks!
Log In
H
Harold Linden
planned
Thanks for sending this in!
This seems reasonable given the approach we're going with for https://secondlife.canny.io/slua-alpha/p/ll-functions-that-return-integer-boolean-could-return-lua-boolean. Leaving them as
number
s just creates more confusion.animats Resident
I thought this was settled in a previous Canny entry. Everyone agreed that having true, TRUE, and 1, with slightly different semantics, was just awful.