[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unpack
- From: "Aaron Brown" <aaron-lua@...>
- Date: Tue, 26 Jul 2005 10:25:30 -0400
David Burgess wrote:
> In work6 why does
>
> function out1(...)
> stdout:write(unpack({...}), '\n')
> end
Same behavior as in Lua 5.0, modulo the "..." syntax:
# If the function is called inside another expression or in
# the middle of a list of expressions, then its return list
# is adjusted to one element, thus discarding all returned
# values except the first one. If the function is called as
# the last element of a list of expressions, then no
# adjustment is made (unless the call is enclosed in
# parentheses).
<http://www.lua.org/manual/5.0/manual.html#2.5.7>
--
Aaron