[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Return a variable number of values from function
- From: Steve Dekorte <steve@...>
- Date: Sun, 18 Nov 2001 14:25:04 -0800
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