lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
> 
> In 4.0, you can wrap you string inside "return function () XXX end",
> where "XXX" is your string.
> Run lua_dostring once on the extended string and then lua_call the result
> many times. (The result is left on the stack after lua_dostring.)

Oh, I didn't know I could return a value from the top level...

Thanks for the hint.

Oscar Lazzarino