lua-users home
lua-l archive

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


It seems as though this would work to make scripts compatible with version 5.2 and preceding versions.  I had thought that making a require statement conditional was not supported.
 
if _VERSION == "Lua 5.2" then
    mm = require"mm"
else
    require"mm"
end