If you're talking about the fact that old versions of Lua gave an automatic arg
containing all args received by a vararg function, then you can just do local arg={...}
right at the beginning of the function.
If you want to convert an array into a list, use table.unpack
.
So, your example would be
function foo(someting,...)
local arg={...}
bar(table.unpack(arg))
end
but this does not make much sense, since you can just do this, which is clearer and simpler:
function foo(someting,...)
bar(...)
end