[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Filename changes in LuaSocket?
- From: duck <duck@...>
- Date: Tue, 28 Dec 2004 23:34:45 +0000
> > Avoid sensible names like the plague!
> > Never call files 'memory.h' 'io.h'
> > 'sock.h' or such like .. that's so sensible
> > you're certain to get a clash with another
> > sensible person :)
> I am sorry to disagree.
[snip]
> The other include files are supposed to be in the same
>directory as the internal LuaSocket modules that include them
Indeed. Ironically, though, Lua's own library tree is not
set up that way...you have /src/lib for the library source,
and /include for all headers, including library ones.
It would be rather nice if a library as useful as LibSocket
were laid out so that it could readily be built for both
dynamic and static use, and could readily be dropped into the
library source tree of the core Lua distro, just like LuaThread
can.
Seems a pity to have to leave a single header file in /src/lib
(when all the others are in /include) just so it can be called
"io.h". (I tend to agree that "io.h" *is* a bad name, albeit
for inelegant historical reasons.)