luaL_register x package.loaded
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: luaL_register x package.loaded
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2010年6月24日 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.
-- Roberto