lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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')