lua-users home
lua-l archive

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


Hi Bill,

The luaopen_socket in luasocket.h is a bug. It should be
luaopen_lsocket.

Both mime and luasocket have some C code and some Lua code. Each part is
loaded independently, both by means of require, and therefore can't have
the same filename. However, both C and Lua export to the same namespace.
That's why their "module" call passes a namespace that doesn't match the
filename.

[]s,
Diego.