lua-users home
lua-l archive

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



Hm, so it is. It's such an odd behaviour (read: counter intuitive to me) that I honestly didn't think for a second that it was actually intentional! <shrug>

Etan Reisner wrote:
This is explained in section 2.5 of the lua manual
http://www.lua.org/manual/5.1/manual.html#2.5 but the short version is
that only the last item in a function call/list/etc. is fully expanded and
other positions are truncated to one item wrapping calls in parentheses
also truncate to one return value.

	-Etan