|
Patrick Donnelly wrote:
That produces an error: 4: attempt to call a nil value
It seems to be a run-time error, while I get a compile-time error with the same code (both with Lua 5.1 and 5.0):
> lua: test1.lua:4: ambiguous syntax (function call x new statement) > near '(' The example can be simplified: print(1) (print)(2) -- Shmuel