From 971d5d8aceb5087d3b3aef9db45abe9bc9c7c844 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 4 Jul 2018 00:03:28 -0400 Subject: - Implemented not-a-number and both infinities in pure Lux. --- .../luxc/lang/translation/lua/procedure/common.jvm.lux | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'new-luxc/source/luxc/lang/translation/lua/procedure') diff --git a/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux index 21baddcfc..b54829a62 100644 --- a/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux @@ -203,16 +203,6 @@ [int//max "math.maxinteger"] ) -(do-template [ ] - [(def: ( _) - Nullary - )] - - [frac//not-a-number (lua./ (lua.int 0) (lua.int 0))] - [frac//positive-infinity "math.huge"] - [frac//negative-infinity (lua.* (lua.int -1) "math.huge")] - ) - (do-template [ ] [(def: ( [subjectO paramO]) Binary @@ -447,9 +437,6 @@ (install "smallest" (nullary frac//smallest)) (install "min" (nullary frac//min)) (install "max" (nullary frac//max)) - (install "not-a-number" (nullary frac//not-a-number)) - (install "positive-infinity" (nullary frac//positive-infinity)) - (install "negative-infinity" (nullary frac//negative-infinity)) (install "to-int" (unary frac//to-int)) (install "encode" (unary frac//encode)) (install "decode" (unary frac//decode))))) -- cgit v1.2.3