Last active
June 1, 2017 20:41
-
-
Save Rusketh/5f418b821d4c2d6fc3f7d799a4a66c6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local inf = {}; | |
inf.__index = inf; | |
setmetatable(inf, inf); | |
function inf.__eq(a,b) return a == b and a == inf; end | |
function inf.__lt(a,b) return b == inf; end | |
function inf.__le(a,b) return b == inf; end | |
function inf.__tostring() return "inf"; end | |
print(inf > math.huge); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment