|
|
||
|
Andy Stark wrote:
Is it possible/desirable for the APR module to add a general purpose
vararg function called "pack" (symmetrical with the existing "unpack" in
the standard library) that collects all its arguments into a table? I
suspect it might be more difficult than this - there is probably a good
reason why there is no "pack" function already in the standard lib.
Anyway, if it is possible, you could just write:-
local table = pack(apr.stat(path))
...for the first case.
I might have not understood the request, but for me, it seems that:
local table = { apr.stat(path) }
is doing that, or do I miss something?
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --