[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.0 and 5.1 together
- From: roberto@... (Roberto Ierusalimschy)
- Date: Wed, 12 Apr 2006 10:22:26 -0300
> It is a feature request. The reason is simple. If you have Lua 5.1 and
> Lua 5.0 installed on the same system, they will fight for control of
> variables LUA_INIT, LUA_PATH, and LUA_CPATH. What John proposed was that
> each version of Lua should check first for version specific environment
> variables, and only if those are not defined should Lua resort to the
> generic variables. For example, Lua 5.1 would first try LUA_5_1_INIT,
> and, if not found, then try LUA_INIT. This is what the patch
> accomplishes.
All that can be accomplished just renaming those variables to include
version number ("LUA_5_1_INIT"). My question was why to test two
variables. What do we get testing LUA_INIT if LUA_5_1_INIT fails,
besides compatibility?
-- Roberto