Shouldn't 2 hash = 2.0 hash? [LONG]

Randal L. Schwartz merlyn at stonehenge.com
Thu Dec 2 00:07:27 UTC 1999


>>>>> "Jan" == Jan Theodore Galkowski <algebraist at salonmember.com> writes:

Jan> I'm not sure this is a better answer than 
Jan> David's, but from a numerical standpoint
Jan> there is a lot of justification in 
Jan> defining

Jan>     2.0 = 2.0 --> false

That'd make stuff like this freak out:

    aSet _ Set new.
    aSet add: 2.0.
    aSet add: 2.0.
    aSet size

    ==> 2

:)

No, just say no.  = should be OK if they really *are* equal.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!





More information about the Squeak-dev mailing list