From: nobu.nokada@... Date: 2003-08-22T22:14:20+09:00 Subject: Re: SystemStackError comparing self-referential structures Hi, At Fri, 22 Aug 2003 18:57:09 +0900, Gerard A.W. Vreeswijk wrote: > >SystemStackError: stack level too deep > > > >I expected a result of true. Am I expecting too much? It might be hard > >(or costly) to get this behavior. Array#== could remember (by calling > >another function and passing along a hash argument throughout the > >recursion) which pairs it has already compared... > > How perverse :-) I am actually surpised that the inspect method is able > to make something out of it. > > Are you the kind of guy that cannot be knocked away from between the two > mirrors in the fun-fair? :-) Method #inspect uses thread local variable to propagate the context. Inspection or traversal API would be required. -- Nobu Nakada