[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua libraries
- From: Ignacio Castaño <castanyo@...>
- Date: Wed, 30 Jan 2002 21:43:51 +0100
Nick Trout wrote:
> > Linux uses the LD_LIBRARY_PATH var to store library search paths. But
> > anyway, i will add a key in lua named _LUALIBPATH to specify
> > for example, a
> > custom path to look up for the lua libraries.
>
> v4.1 has LUA_PATH defined for require. Why dont you use this?
That seems like a good idea, I will look for libraries in LUA_PATH, but also
in LUA_LIBPATH in case someone wants to put libraries in a different
directory.
I've uploaded here a first version of the addon here:
http://talika.fie.us.es/~titan/lua/
Feel free to criticise. It has not been extensively tested, tomorrow I will
try to write a simple library and some examples of its use.
The platform dependant code is isolated in a few macros and definitions, so
that if someone wants to port it to a different platform only has to touch a
few lines of code.
Ignacio Castaño
castano@asidesoft.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com