> If I could require() global functions like type() or pcall(), I would > do that as well linit.c contains: static const luaL_Reg loadedlibs[] = { {"_G", luaopen_base}, ... So, you can require"_G", but that is hardly clear.