Jia Pu wrote:
> Thanks, that works.
> I am wondering the requirement of #eql? is necessary. If the programmer
> wants to have non-equal objects to have same hash value, it is totally 
> up to
> the programmer.

I'm not sure what you are asking, but you can define #== and #eql? 
differently. In fact, ruby already does this in some cases:

irb(main):001:0> 1.0.eql? 1
=> false
irb(main):002:0> 1.0 == 1
=> true

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407