lua-users home
lua-l archive

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



On Sunday, November 18, 2001, at 02:20  PM, Matthias Gall wrote:
I just asked myself whether it's possible to have something like the vararg
function for function results: a function returns a variable number of
values. I would be happy about a short code snippet, if this feature is
supported. I am using LUA 4.0.

function foo()
  return 6, "hello", {}, 32
end

local  a, b, c, d = foo()

Steve