[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: luaL_register x package.loaded
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 24 Jun 2010 17:07:19 -0300
The function luaL_register (from lauxlib), used to open C libraries,
registers the new library into the table package.loaded[name]. Most
libraries, however, also return the new library, so that 'require' will
assign it to package.loaded[name]. For these libraries, the assignment
made by luaL_register is mostly useless.
I would like to know about packages that do depend on that assignment,
either because they do not return the new library or any other reason.