lua-users home
lua-l archive

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


Hi,

Unless you manually write something in package.loaded["socket"],
require("socket.core") won't, and so any call of the form
require("socket") will at least call the init function of socket module
(ie. socket.lua). That does not mean that things will be ok, but at
least the module system won't get in the way.

socket.core calls luaL_openlib("socket", func, 0). Won't
this create a module table and put it in package.loaded["socket"]?

[]s,
Diego.