lua-users home
lua-l archive

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


Surely it's much easier to just check the _VERSION global to get the
version? After all, in some future version of Lua, the version may not
be in the 5th byte, but _VERSION will definitely *not* be "Lua 5.1"

2008/11/6 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> I suppose the lua version could be checked, as well, to address
>> versioning issues.
>
> The version is stored in the 5th byte.
>