lua-users home
lua-l archive

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


>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