[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Determine endianness in pure lua
- From: "Peter Cawley" <lua@...>
- Date: Thu, 6 Nov 2008 17:44:24 +0000
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.
>