From: Urabe Shyouhei Date: 2009-05-11T21:58:42+09:00 Subject: [ruby-core:23427] Re: [Bug #1363] Wrong value for Hash of NaN This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6F8490264E9DC58B7A9A2E41 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yukihiro Matsumoto wrote: > Hi, >=20 > In message "Re: [ruby-core:23423] Re: [Bug #1363] Wrong value for Hash = of NaN" > on Mon, 11 May 2009 19:03:59 +0900, Nobuyoshi Nakada writes: >=20 > |At Wed, 8 Apr 2009 14:38:31 +0900, > |Heesob Park wrote in [ruby-core:23154]: > |> Ruby cannot handle NaN as a unique key of Hash. > | > |It's easy to make them unique as key, I'm not sure which is > |"correct" behavior though. >=20 > Two NaN values are not equal with each other by definition, in that > sense, even though some might want to use NaN as a hash key, the > current behavior seems to be "correct". I don't argue about correctness on NaNs being different each other, but I= also agree with the reporter with Hash being inconvenient when NaNs used as ke= ys. --------------enig6F8490264E9DC58B7A9A2E41 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoIIPsACgkQuTXPUnA5eMKgjwCghwMGjmGKE+C00nOzMiWRx0lc KvoAnRm1RHKM/XmEpPjlDGgMfeoB/p/J =ReqT -----END PGP SIGNATURE----- --------------enig6F8490264E9DC58B7A9A2E41--