lua-users home
lua-l archive

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


On Tue, 16 Mar 2010 17:02:26 +0100
Duboucher Thomas <thomas@duboucher.eu> wrote:

> 	No, but in a stack-based programming style, it can be useful
> to push step by steps the return values on the stack instead of
> all-at-once at the end of the execution (eg with a return statement).

And this can be easily emulated by accumulating return values in a
table, and then using return table.unpack(foo) at the end of your
function.

B.