lua-users home
lua-l archive

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


Hi

I am using this code to load the two libraries:

luaopen_base(L);
lua_pop(L, 1);
luaopen_string(L);
lua_setglobal(L, "string");


It seems to me luaopen_base doesn't need setglobal (to be enabled for scripts),
but I have to call lua_pop to return the stack at zero.

Am I right?
Can you update the manual about this difference?

Best regards, Massimo

_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org