From: Joel Pearson Date: 2013-02-21T07:36:24+09:00 Subject: Re: THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX Matt Mongeau wrote in post #1098076: > It's not really a paradox. Take for example > irb(main):001:0> a = [] > => [] > irb(main):002:0> a << a > => [[...]] irb(main):003:0> a.flatten! ArgumentError: tried to flatten recursive array from (irb):3:in `flatten!' from (irb):3 from C:/Ruby193/bin/irb:12:in `
' Ha! I bet whoever wrote that ( Matz, presumably? ) was shaking his head and thinking "Well this is one error message no sane programmer will ever see." I'd never have seen that as a possibility. -- Posted via http://www.ruby-forum.com/.