From: Kent Sibilev Date: 2006-09-27T10:33:24+09:00 Subject: Re: Problem with latest array.c changes ------=_Part_15710_15660406.1159320801429 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/25/06, Yukihiro Matsumoto wrote: > > Hi, > > In message "Re: Problem with latest array.c changes" > on Tue, 26 Sep 2006 00:24:36 +0900, "Kent Sibilev" > writes: > > |This change > | > |Mon Sep 25 21:24:54 2006 Yukihiro Matsumoto > | > | * array.c (rb_ary_shift): should clear shifting top element. > | [ruby-talk:216055] > | > | * array.c (rb_ary_shift): avoid creating shared object if array > | size is small. > | > |leads to > | > |irb(main):027:0> a = [:a] * 3 > |=> [:a, :a, :a] > |irb(main):028:0> a > |=> [:a, :a, :a] > |irb(main):029:0> a.dup.shift > |=> :a > |irb(main):030:0> a > |=> [:a, :a, true] > | > |This patch seems to fix it > > Ah, thank you for finding and fixing the bug. > > matz. > > Shouldn't it be applied to ruby_1_8 branch too? Thanks. -- Kent --- http://www.datanoise.com ------=_Part_15710_15660406.1159320801429--