xo-numeric: + less than dispatch (also in schematika parser)

This commit is contained in:
Roland Conybeare 2026-02-27 22:55:14 +11:00
commit 5791cd59ce
12 changed files with 83 additions and 13 deletions

View file

@ -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());
}
}
}