[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Lanes with package.preload and package.loader
- From: Greg <tghill@...>
- Date: Wed, 16 Nov 2011 04:23:53 +0000 (UTC)
> Give a go at git HEAD and tell me how it goes.
I think it is close.
I tried it out and got an error:
[string "--LANES.LUA..."]:499: function package.preload.socket.core not found in
destination transfer database.
To setup lua sockets, I have some code like this:
lua_getfield(lua, LUA_GLOBALSINDEX, "package");
lua_getfield(lua, -1, "preload");
lua_pushcfunction(lua, luaopen_socket_core);
lua_setfield(lua, -2, "socket.core");
I'm expecting lanes to look for package.preload["socket.core"] not
"package.preload.socket.core".
Any ideas?
- Greg