lua-users home
lua-l archive

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


Try modifying your code as follows:

 function try( ... )
   local someArguments = { ... }
+  local n = select("#", ...)
   local aFunction = function()
<    tryToDoIt( unpack( someArguments ) )
>    tryToDoIt( unpack( someArguments, 1, n ) )

--
Wim