lua-users home
lua-l archive

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


> 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