Re: [Ironruby-core] Problem with Arrays

2009-12-16 Thread Jimmy Schementi
ironruby-core- > boun...@rubyforge.org] On Behalf Of Pascal Normandin > Sent: Tuesday, December 15, 2009 8:18 PM > To: ironruby-core@rubyforge.org > Subject: [Ironruby-core] Problem with Arrays > > Hello, > > I think I have found a problem with the Array delete_if method.

[Ironruby-core] Problem with Arrays

2009-12-15 Thread Pascal Normandin
Hello, I think I have found a problem with the Array delete_if method. If I do the following when a do the arr2 = Array.new arr I get a nil value >>> arr = ["asd", "qwe", "zxc"] => ["asd", "qwe", "zxc"] >>> arr.delete_if{|x| x == "qwe"} => ["asd", "zxc"] >>> arr2 = Array.new arr => [nil, "asd"]