[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: stack & luaopen_*
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 14 Aug 2003 09:32:14 -0300
>the luaopen_* functions leave values on the stack. Is this correct
>behaviour? What happens if I clear the stack? Will the functions
>continue working?
Yes, this is the correct behaviour (it's a protocol really, because
they are ordinary Lua functions and can be exposed to Lua).
No problem clearing the stack: lua.c does that.
--lhf