lua-users home
lua-l archive

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


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