This project is read-only.
1

Closed

Array#hash should properly handle recursive arrays

description

The following code produces a StackOverflowException under IronRuby:
 
ary = []
=> []
ary << ary
=> [[...]]
ary.hash
 
but under the MRI it works correctly:
 
irb(main):001:0> ary = []
=> []
irb(main):002:0> ary << ary
=> [[...]]
irb(main):003:0> ary.hash
=> 2
 
IronRuby should handle recursive arrays in RubyArray.GetHashCode.
Closed Apr 17, 2009 at 7:40 PM by sborde
Fixed

comments