lua-users home
lua-l archive

Re: 答复: Re: Maybe I found a bug in function unpack.

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


hei.minglei@zte.com.cn writes:
> lua-l-bounces@lists.lua.org wrote on 2011年09月06日 11:56:17:
>> Nope. When you write:
>> c = {unpack(a), unpack(b)}
>> Since unpack(a) is not the last item in the list, only its first
>> return value is added to the table. It is a bit confusing...
>
> I thought this rule only applies to function before.
unpack is a function.
-- 
David Kastrup

AltStyle によって変換されたページ (->オリジナル) /