[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Path change to LUA_CPATH in Lua Binaries
- From: "Paul Moore" <p.f.moore@...>
- Date: Sun, 24 Aug 2008 20:14:13 +0100
2008/8/24 RJP Computing <email@example.com>:
> I don't mean to say this discussions is not a good one, but can I get some
> feedback on the original issue about adding the 'clib' to the default Lua
> Binaries. Thanks.
I much prefer module DLLs to be kept separate from the Lua executable
and DLL, so I'm in favour of this in principle.
In practice, I build my own Lua (to avoid funnies with the VC8
runtimes), so I don't have a direct interest. For what it's worth, I
patched the standard definitions as follows:
#define LUA_LDIR "!\\..\\lua\\"
#define LUA_CDIR "!\\..\\dll\\"
#define LUA_PATH_DEFAULT \
".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
So I have a directory structure
...\Lua\bin -> lua.exe, lua51.dll, luac.exe
...\Lua\dll -> lpeg.dll, lfs.dll, etc
...\Lua\lua -> logging.lua, socket.lua, etc
This feels "cleaner" to me, at least.
I'd rather that there was a standard of some sort, whatever it might
be. And I'd rather that it separated the Lua exes and DLLs from
loadable modules - but I'm not sure that anything not in the official
Lua sources can count as a "standard".