lua-users home
lua-l archive

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


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>