[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: unpack in lua5.1
- From: Rici Lake <lua@...>
- Date: Tue, 28 Nov 2006 23:44:35 -0500
On 28-Nov-06, at 11:31 PM, al_lea wrote:
I don't quite understand why you're packing an array in order to
for g_load_new itself might be a ... passed in by other function, I
just pack an
it in order to send it to a varargs function.
array here to boil down.
In 5.1, you can just send ..., which is effectively an expression list
(i.e. it is not an object as such):
function log(level, fmt, ...)
if log_enabled[level] then