On Fri, Jul 24, 2009 at 4:48 PM, Gregory Brown<gregory.t.brown / gmail.com> wrote:

> To be clear, I think it's basically a bug, for sure. But I think the
> bug is that Array#hash doesn't do this truncation trick that
> Object#hash claims, which doesn't tell me anything about Object#hash's
> documentation.
> So I'm not disagreeing with you, I'm just expressing the concern that
> the issue is probably in Array, not Object.

To further illustrate:

>> class Array
>>   def hash
>>      42 # terrible idea
>>   end
>> end
=> nil
>> a = { o => 1 }
=> {#<Object:0x248d6c>=>1}