lua-users home
lua-l archive

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


> How do the lua syntax rules lead to (...)[i] indexing the first
> argument?  I don't follow the meaning of (...).

Any expression that results in a list of expressions, such as function call
or ..., can be enclosed in parenthese and the result is the first expression.

http://www.lua.org/manual/5.1/manual.html#2.5