Runtime type checking for comparison ops.
Because we're using Scheme Booleans for Thun Booleans there's no need to make a special function for these, we can reuse the one for math ops.
This commit is contained in:
parent
6bd9249f83
commit
35a122b2ba
|
|
@ -63,12 +63,12 @@
|
||||||
((/ div) (values (joy-math-func quotient stack) expression dict)) ; but for negative divisor, no!?
|
((/ div) (values (joy-math-func quotient stack) expression dict)) ; but for negative divisor, no!?
|
||||||
((% mod) (values (joy-math-func modulo stack) expression dict))
|
((% mod) (values (joy-math-func modulo stack) expression dict))
|
||||||
|
|
||||||
((< lt) (joy-func < stack expression dict))
|
((< lt) (values (joy-math-func < stack) expression dict))
|
||||||
((> gt) (joy-func > stack expression dict))
|
((> gt) (values (joy-math-func > stack) expression dict))
|
||||||
((<= le) (joy-func <= stack expression dict))
|
((<= le) (values (joy-math-func <= stack) expression dict))
|
||||||
((>= ge) (joy-func >= stack expression dict))
|
((>= ge) (values (joy-math-func >= stack) expression dict))
|
||||||
((= eq) (joy-func = stack expression dict))
|
((= eq) (values (joy-math-func = stack) expression dict))
|
||||||
((<> != neq) (joy-func not-equal stack expression dict))
|
((<> != neq) (values (joy-math-func not-equal stack) expression dict))
|
||||||
|
|
||||||
((bool) (joy-bool stack expression dict))
|
((bool) (joy-bool stack expression dict))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue