lua-users home
lua-l archive

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


2014-03-06 10:26 GMT+02:00 Мельниченко Пётр <petjamelnik@yandex.ru>:

> In both Lua 5.1[1] and Lua 5.2[2] module("foo") tries to use a global variable
> "foo" as the module table. And it sets it if it can't find it.

In 5.2 only #if defined(LUA_COMPAT_MODULE).

Which is the default, true. But luaL_pushmodule is not documented in the 5.2
manual.