From: Heesob Park <redmine@...>
Date: 2009-05-11T21:34:29+09:00
Subject: [ruby-core:23426] [Bug #1363] Wrong value for Hash of NaN

Issue #1363 has been updated by Heesob Park.


In order to prevent confusion in using NaN as hash key,
it would be better to raise an error like in Lua.

Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> h = {}
> h[0/0.0] = 1
stdin:1: table index is NaN
stack traceback:
        stdin:1: in main chunk
        [C]: ?


----------------------------------------
http://redmine.ruby-lang.org/issues/show/1363

----------------------------------------
http://redmine.ruby-lang.org