From: matz@... (Yukihiro Matsumoto) Date: 2001-07-21T11:08:49+09:00 Subject: [ruby-talk:18235] Re: how does hash locate pairs? Hi, In message "[ruby-talk:18223] Re: how does hash locate pairs?" on 01/07/21, Avi Bryant writes: |Anytime you redefine ==, you need to redefine hash such that if a == b, |a.hash == b.hash. Hash uses "eql?", so that you need to redefine hash such that if a.eql?(b), a.hash == b.hash. matz.