[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: [bug] Float >> NaN in a dictionary
From: |
Paolo Bonzini |
Subject: |
[Help-smalltalk] Re: [bug] Float >> NaN in a dictionary |
Date: |
Fri, 12 Jun 2009 02:09:54 -0700 |
Issue status update for
http://smalltalk.gnu.org/project/issue/317
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/317
Project: GNU Smalltalk
Version: <none>
Component: Base classes
Category: bug reports
Priority: normal
Assigned to: Unassigned
Reported by: MrGwen
Updated by: bonzinip
Status: active
I'd say it does not make much sense. Given that NaNs are ~= to
themselves, you cannot do anything with them in an equality-based hash
table (only in a identity-based one).
Were you just playing with fire or did you get into this in some
real-world case?
I wonder how much if anything would be broken by making Float>>#hash
raise an exception for NaNs.