|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] BUG gst2.2: Fraction hash |
Date: | Sat, 27 Jan 2007 15:44:03 +0100 |
User-agent: | Thunderbird 1.5.0.9 (Macintosh/20061207) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |