lua-users home
lua-l archive

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


>> I believe that the desired behavior for require is to detect Lua
>> version mismatch and skip the module to try to find a next one that
>> fits better. I'm not sure if it is doable though...

> Well, note that lua5.2 is still using '/usr/local/lib/lua/5.1/'.

Well, that is a bug in luaconf.h then.

However, since 5.2 uses the same LUA_CPATH environment variable as
5.1, even when the bug would be fixed, I think it would not help much.

> There's always the distinct _VERSION global.

Can you access it *before* module is loaded? How to beat "undefined
symbol" error with it? Am I missing something?

Alexander.