Re: building a single lua binary with luasocket
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: building a single lua binary with luasocket
- From: Diego Nehab <diego@...>
- Date: 2005年5月30日 16:00:15 -0400 (EDT)
Hi,
I have done this as I have commented before and there was a problem
where socket.lua did a require("lsocket"). This meant that if you pre
loaded the C library :- lsocket which actually imports into the
"socket" namespace then the lua code is never loaded.
Why can't you just place luaopen_lsocket in package.preload["lsocket"],
as I suggested?
[]s,
Diego.