lua-users home
lua-l archive

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


Thanks a lot!

Ketmar Dark wrote:
hello, Eva Schmidt <es@sol-3.de>.

On Thu, 13 Sep 2007 12:50:48 +0200
Eva Schmidt <es@sol-3.de> wrote:

yes, I see. In the further version the .lua files had been
"lua_dofiled" from the luaopen_socket-function. Is there any place in
the library where this is done (maybe with another call) or do I have
to call execute the socket.lua by myself?
i think that the "core" is loaded from the socket.lua, and not vice
versa. so "core" doesn't know anything about Lua modules. the aim of a
"core" is to provide the basic OS interface, so all the other things can
be built in Lua with this interface. at least LuaSocket 2 works this
way.

so you should load socket.lua (and maybe other things like url.lua,
ftp.lua, ltn12.lua, etc) manually.

--

--

  \ /           Sol-3 GmbH & Co. KG             Eva Schmidt
 --o-- Sol-3    Eltviller Straße 2              Phone: ++49 (0) 6123 7029 23
  / \           D-65399 Kiedrich                Fax:   ++49 (0) 6123 7029 29
                USt-ID:   DE 204978307          eMail: es@sol-3.de
                Register: WI HRA 6607
                Komplementär:    Sol-3 Verwaltungs GmbH
                Register:        WI HRB 117786
                Geschäftsführer: Norbert Geus, Dirk Zoller