From e23aa93e5b35da0e9eba75cae8482e8ea47c00d8 Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 15 Nov 2005 07:38:38 +0000 Subject: * array.c (rb_ary_fill): previous commit disabled this usage: a = [0,1,2,3,4,5,6,7,8,9] a.fill {|i| a[i] * 10} #=> [nil, nil, ...., nil] previous commit has advantange for early garbage collection, but potensially would break some script. so I reverted behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index bc21d5d1fc..123aa7edad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Tue Nov 15 16:23:26 2005 Hirokazu Yamamoto + + * array.c (rb_ary_fill): previous commit disabled this usage: + + a = [0,1,2,3,4,5,6,7,8,9] + a.fill {|i| a[i] * 10} #=> [nil, nil, ...., nil] + + previous commit has advantange for early garbage collection, but + potensially this would break some script. so I reverted behavior. + Tue Nov 15 16:04:10 2005 Hirokazu Yamamoto * array.c (rb_ary_fill): tail elements were vanished when the middle -- cgit v1.2.3