[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luasocket: luaopen_socket or luaopen_lsocket?
- From: Diego Nehab <diego@...>
- Date: Mon, 30 May 2005 17:02:35 -0400 (EDT)
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.