[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_compilestring()
- From: Oscar Lazzarino <osk@...>
- Date: Mon, 03 Dec 2001 13:46:18 +0100
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