lua-users home
lua-l archive

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


> Not sure when the change was made, but I noticed that Lua 5.2.0 allows the following syntax:
> 
> print
> (
>     'foo'
> )
> 
> Is that change on purpose? Or accidental?

On purpose. The introduction on empty statements help this because you 
can now write
	; (exp)...
for a statement that starts with an open parenthesis.