|
That's unrelated to the issue at hand though; it happens with "x" instead of "_ENV" just as well. It's because ">=" is a different lexical token (greater-than-equals).
Furthermore Lua forces to put a space after '>'
local _ENV<const>=0;
stdin:1: '>' expected near '>='
чт, 3 февр. 2022 г. в 17:20, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
> The most interesting part of the test script raises an "attempt to index a string value" error.
> Why "string" instead of "number"?
>
> local _ENV <const> = 0
> x=0
Indeed! If you remove '<const>' then you get the expected error message:
attempt to index a number value (local '_ENV')