From: matz@... (Yukihiro Matsumoto) Date: 2003-02-21T06:08:44+09:00 Subject: Re: Inconsistent behavior in Array methods Hi, In message "Re: Inconsistent behavior in Array methods" on 03/02/21, Steve Tuckner writes: |I ran into a similar issue that also surprised me. Below is an example of |it. It seems that the union operator ('|') uses object#id instead of |object#== to compare values. I understand the need for performance, but it |would be nice to be able to use == instead of comparing the id's. It uses Hash inside, so that you have to override "eql?" and "hash" as well as "==". matz.