[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can I get two instances of the same module?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 6 Mar 2014 11:23:21 +0200
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.