lua-users home
lua-l archive

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


>Why is
>    f = function() print(9);end
>accepted, while
>    f = function();print(9);end
>is not?

Because Lua does not have an empty statement.
Semicolons can only appear after statements.
--lhf