Today i was working some with lua,with that "oldesh" for me language,and did find what you can get arguments as array,like soo:
function foo(someting,...)
local arrayofargs = arg
-- code here
end
And now,i'm intresting.Can that be in "other way"? Can you pass array,not as array,but like param list,Like so:
function bar(a1,a2)
print(a1+a1)
end
function foo(someting,...)
local arrayofargs = arg
bar(arg)
end
Yes,you cant do that.But can i somehome make someting like that?