On Thu, Aug 21, 2008 at 9:10 AM, Mayuresh Kathe <kathe.mayuresh / gmail.com> wrote: > Hello, > > A while back there was this discussion about what code could crash irb > > I did the following in irb 1.9; > a = [3, 2, 1, 0, -1, -2, -3] > a.each {|x| a[x] = x +1} looks like an endless loop to me, well and to irb too ;) See this ruby -e 'a=[1];a.each{|x| a[x] = x.succ; p a}' HTH Robert -- http://ruby-smalltalk.blogspot.com/ There's no one thing that's true. It's all true. -- Ernest Hemingway