From: Benoit Daloze Date: 2010-12-15T20:35:53+09:00 Subject: [ruby-core:33723] Re: [Ruby 1.9-Bug#4136] Enumerable#reject should not inherit the receiver's instance variables On 15 December 2010 05:32, Marc-Andre Lafortune wrote: > Or similarly, why does: > > � �(x.slice(0,0)).class # => Sub > � �# while... > � �(x.slice!(0,0)).class # => Array > > Thanks > -- > Marc-Andr� I suppose you already know this, but it might help others: x.slice!(0, 1).class # => Sub x.slice!(0..0).class # => Sub x.slice!(0, 0).class # => Array x.slice!(1, 0).class # => Array x.slice!(1..0).class # => Array So, it seems any arguments to #slice which return some kind of Array except slice(n, 0) and slice(n,