lua-users home
lua-l archive

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


It was thus said that the Great PROXiCiDE once stated:
> I want to pass a function that supports
> ellipses "..." and return several of
> them into different variables..

function many(...)
  return ... 
end

a,b,c,d,e = many(1,2,3,4,5)
print(a,b,c,d,e)
1	2	3	4	5

  -spc (it'll work just as long as you return ... )