From: Tanaka Akira Date: 2008-03-04T18:42:08+09:00 Subject: [ruby-dev:33989] Hash#compare_by_identity breaks commutativity of Hash#== 以下のように、h1 == h2 でないのに h2 == h1 ということになる ことがあります。 % ./ruby -ve ' h1 = {"a" => 0} h2 = {"a" => 0} h2.compare_by_identity p h1 == h2 p h2 == h1 ' ruby 1.9.0 (2008-03-04 revision 15686) [i686-linux] false true -- [田中 哲][たなか あきら][Tanaka Akira]