Bug #1731: Enumerable#join with Recursive Structure: "invalid inspect_tbl list for :to_a"
http://redmine.ruby-lang.org/issues/show/1731

Author: Run Paint Run Run
Status: Open, Priority: Normal
Category: core
ruby -v: ruby 1.9.2dev (2009-07-05 trunk 23958) [i686-linux]

class Enum
      include Enumerable
      
      def initialize
        @elements = [self]
      end
      def each
        @elements.each {|e| yield e}
      end
    end
  
    Enum.new.join

This code hangs for a second or so then complains:

  $ ruby -vw /tmp/inspect_tbl.rb 
  ruby 1.9.2dev (2009-07-05 trunk 23958) [i686-linux]
  /tmp/inspect_tbl.rb:11:in `to_a': invalid inspect_tbl list for :to_a in #<Thread:0x990645c run> (TypeError)
	from /tmp/inspect_tbl.rb:11:in `join'
	from /tmp/inspect_tbl.rb:11:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org