Undefine TRUE/FALSE or convert them
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
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.