[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unpack in lua5.1
- From: al_lea <abrash_han@...>
- Date: Wed, 29 Nov 2006 04:31:13 +0000 (UTC)
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