lua-users home
lua-l archive

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

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: