lua-users home
lua-l archive

Re: unpack in lua5.1

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


Rici Lake <lua <at> ricilake.net> writes:
> I don't quite understand why you're packing an array in order to unpack 
> it in order to send it to a varargs function.
for g_load_new itself might be a ... passed in by other function, I just pack an
array here to boil down.
> > Is there some way to make the unpack works well with nil holes?
> 
> Try:
> unpack(g_load_new, 1, g_load_new.n)
It works, and thanks a lot.
hZ

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