IDP-Lua does not accept "= #L" as command after "L = {}"
Issue #219
wontfix
This is an allowed command in lua.
Comments (4)
-
-
So, this '=' is a feature of lua interpreter for evaluating expressions and returning the result.
The thing is that our interactive mode does not return results. You can make it return stuff by using prints, but it does not return the result of evaluating the command you gave.
Is this what we want?
-
reporter -
assigned issue to
-
assigned issue to
-
reporter - changed status to wontfix
- Log in to comment
Relevant piece of info from Lua website: http://lua-users.org/wiki/InteractiveLua
However, there are some limitations about the standard interactive prompt; if you wish to evaluate an expression, you must prefix it with '='. The interpreter translates this as 'return ' so that you are always entering a valid chunk of Lua code. Also, tables are not printed out, unless there is an explicit __tostring in their metatables: