Clemens Hintze <c.hintze / gmx.net> writes:



> Perhaps the hash function of that array, could be able to know that
> it is calculating the reference to itself and so does not looping?!?

     a = [1,2,3]
     a[1] = a
     p a
     p a.to_s
     p a.id
     p a.hash
  >>
     [1, [...], 3]
     "11[...]33"
     537681066
     <<infinite loop>>


Exactly - it just seems inconsistent, but as I mentioned originally, I 
don't think it's necessarily a bug ;-)



Regards

Dave