lua-users home
lua-l archive

Re: Can I get two instances of the same module?

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

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