lua-users home
lua-l archive

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


On Wed, Jul 27, 2005 at 12:11:46AM +1000, David Burgess wrote:
> In work6 why does
>
>  function out1(...)
>   stdout:write(unpack({...}), '\n')
> end
>
> only output the first parameter?
should be no new behaviour

"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."

http://www.lua.org/manual/5.0/manual.html#2.5.7


cheers