lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
5.2 and older compatibility
From
: <AllanPfalzgraf@
...
>
Date
: Fri, 23 Sep 2011 09:26:08 -0400
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
Follow-Ups
:
Re: 5.2 and older compatibility
,
Luiz Henrique de Figueiredo
Prev by Date:
Re: Lua-ified Lua users wiki?
Next by Date:
Re: 5.2 and older compatibility
Previous by thread:
Re: lua_replace bug?
Next by thread:
Re: 5.2 and older compatibility
Index(es):
Date
Thread