From: ts Date: 2001-02-23T00:10:18+09:00 Subject: [ruby-talk:11320] Re: Array bugs? >>>>> "C" == Christoph Rippel writes: C> I think the problem is with the hashing algorithm. All array rb_ary_hash() I think C> methods which might invoke array hashing (basically &,|,uniq, C> and hashing it self) hang (on my maschine) on self-referential C> (recursive) arrays. Same problem with Array#eql?, Array#<=> pigeon% ruby -e 'a = []; a << a; a.eql? a' -e:1:in `eql?': stack level too deep (SystemStackError) from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' ... 11837 levels... from -e:1:in `eql?' from -e:1:in `eql?' from -e:1:in `eql?' from -e:1 pigeon% pigeon% ruby -e 'a = []; a << a; a <=> a' -e:1:in `<=>': stack level too deep (SystemStackError) from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' ... 12605 levels... from -e:1:in `<=>' from -e:1:in `<=>' from -e:1:in `<=>' from -e:1 pigeon% Guy Decoux