lua-users home
lua-l archive

Loaded library on stack

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


I’m new to Lua. I’m in the process of embedding Lua within an application I wrote. The only question I have at the moment is when I load a library the table is left on the stack, is it okay to pop it off? All the example code I’ve seen never do this. Isn’t the stack space limited?

luaopen_base(L); /* opens the basic library */

luaopen_table(L); /* opens the table library */

luaopen_io(L); /* opens the I/O library */

luaopen_string(L); /* opens the string lib. */

luaopen_math(L); /* opens the math lib. */


AltStyle によって変換されたページ (->オリジナル) /