ANSI, =, hash, Integer, Float
Colin Putney
cputney at whistler.com
Tue Dec 17 02:46:27 UTC 2002
On Monday, December 16, 2002, at 05:27 PM, Richard A. O'Keefe wrote:
> Does any existing Smalltalk actually have number hashes that are
> consistent with #= *even between different classes*?
>
> From the fact that this problem seems to have been around for 20+
> years,
> I surmise that people _don't_ make a habit of using rational numbers
> (*Integer, Fraction) and Floats as keys in the same collections.
Here's another proposal: make Float>>= call #shouldNotImplement.
I wonder what, if anything, it would break?
Colin Putney
Whistler.com
More information about the Squeak-dev
mailing list
|