xFrac and xFloat will answer true to equality (this is arguable, because
only their floating point approximation are equal, not their
exactFraction representation, but this is another thread).
That's a bug, but not one for which I have a quick solution except
making Fractions "more general" than Floats (in fact they are) and
implementing
Fraction>>coerce: x
^x asExactFraction
Any objections? This is a 2.4 change anyway.
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk