lua-users home
lua-l archive

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


On Wed, 2004-12-29 at 10:34, duck wrote:
> > > 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.

Mine isn't though. My lua is all in a single subdirectory.
After compilation, I copy needed headers into a different
directory (and pack up the object files into a library).

Any packages not using a prefix will get their file
names modified. Lua is a close call, it only uses a
single 'l' which isn't enough .. but I do prefer
sticking with the original filenames -- it makes
upgrading easier :)

The thing is Lua is open source, and may have uses
its builders didn't think of originally. Who would
guess it would be shipped in a literate programmed
archive as part of a larger system including several
other packages the same way? 

Who would guess the API header files, would need
wrappers for other languages .. and people would
like to use wrappers with related names...?

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net