No error reported with "ZERO_VECTOR.x" and similar constructions
Closed this issue · 2 comments
buildersbrewery commented
The following code does NOT compile in Second Life:
Error should be at (5, 30) at the '.'
default
{
state_entry()
{
float f = ZERO_VECTOR.x;
llOwnerSay((string)f);
}
}
however lslint does not complain. Tested with v1.0.8
.
Sei-Lisa commented
Thanks for the report. It's a consequence of commit 24127a6 (the one that introduces adds constants to builtins.txt), and it's irritating, because in that commit, constants are treated by the syntax analyzer like any other variables, making it more difficult to catch that situation.