[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Cheap way to add Lua 5.3 partial bit32 compatibility
- From: Tom N Harris <whoopdedo@...>
- Date: Thu, 07 May 2015 19:00:28 -0400
On Thursday, May 07, 2015 04:56:54 PM Daurnimator wrote:
> This is sort of what I did in lua-http:
> https://github.com/daurnimator/lua-http/blob/master/http/bit.lua
The _VERSION test is redundant. You could just test the return from load and
if it succeeds you know you're on Lua 5.3 or some other compatible
interpreter. Test for features, not versions.
--
tom <telliamed@whoopdedo.org>