lua-users home
lua-l archive

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


> 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.