xo-numeric: + less than dispatch (also in schematika parser)
This commit is contained in:
parent
a62bb4cec8
commit
5791cd59ce
12 changed files with 83 additions and 13 deletions
|
|
@ -58,6 +58,14 @@ namespace xo {
|
|||
x->value() != DFloat::value_type(y->value()));
|
||||
}
|
||||
|
||||
obj<AGCObject>
|
||||
FloatIntegerOps::cmp_less(obj<ARuntimeContext> rcx,
|
||||
DFloat * x, DInteger * y)
|
||||
{
|
||||
return DBoolean::box<AGCObject>(rcx.allocator(),
|
||||
x->value() < DFloat::value_type(y->value()));
|
||||
}
|
||||
|
||||
// ----- Integer op Float -----
|
||||
|
||||
obj<AGCObject>
|
||||
|
|
@ -104,6 +112,14 @@ namespace xo {
|
|||
DFloat::value_type(x->value()) != y->value());
|
||||
}
|
||||
|
||||
obj<AGCObject>
|
||||
IntegerFloatOps::cmp_less(obj<ARuntimeContext> rcx,
|
||||
DInteger * x, DFloat * y)
|
||||
{
|
||||
return DBoolean::box<AGCObject>(rcx.allocator(),
|
||||
DFloat::value_type(x->value()) < y->value());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue