lua-users home
lua-l archive

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


i didn't realize multiple return values could be passed on to another
function without a table.

> function foo(x,y,z) print("x=",x,"y=",y,"z=",z) end
> function getpos() return 1,2,3 end
> foo(getpos())
x=      1       y=      2       z=      3

nice.  lua is full of surprises.  :)