lua-users home
lua-l archive

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


>We are using Lua in one of our apps.  I noticed today that luaL_openlib always leaves a table on the stack.  My question is why?

Because it may be useful,

>Should I just call lua_pop(L,1) after every call to luaL_openlib?

Yes. That's what lua.c does.
--lhf