ruby-changes:4449
From: ko1@a...
Date: Wed, 9 Apr 2008 21:35:15 +0900 (JST)
Subject: [ruby-changes:4449] knu - Ruby:r15940 (ruby_1_8): Array#reject too.
knu 2008-04-09 21:34:35 +0900 (Wed, 09 Apr 2008) New Revision: 15940 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/NEWS branches/ruby_1_8/array.c Log: Array#reject too. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=15940&r2=15939&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/array.c?r1=15940&r2=15939&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/NEWS?r1=15940&r2=15939&diff_format=u Index: ruby_1_8/array.c =================================================================== --- ruby_1_8/array.c (revision 15939) +++ ruby_1_8/array.c (revision 15940) @@ -2066,6 +2066,7 @@ rb_ary_reject(ary) VALUE ary; { + RETURN_ENUMERATOR(ary, 0, 0); ary = rb_ary_dup(ary); rb_ary_reject_bang(ary); return ary; Index: ruby_1_8/NEWS =================================================================== --- ruby_1_8/NEWS (revision 15939) +++ ruby_1_8/NEWS (revision 15940) @@ -29,6 +29,7 @@ * Array#each * Array#each_index * Array#reverse_each + * Array#reject * Array#reject! * Array#delete_if Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 15939) +++ ruby_1_8/ChangeLog (revision 15940) @@ -1,9 +1,9 @@ Wed Apr 9 21:13:05 2008 Akinori MUSHA <knu@i...> * array.c (rb_ary_each, rb_ary_each_index, rb_ary_reverse_each, - rb_ary_reject_bang): Array#each, #each_index, #reverse_each, - #reject! and #delete_if return an enumerator if no block is - given; backported from 1.9. + rb_ary_reject, rb_ary_reject_bang): Array#each, #each_index, + #reverse_each, #reject, #reject! and #delete_if return an + enumerator if no block is given; backported from 1.9. Wed Apr 9 20:47:16 2008 Akinori MUSHA <knu@i...> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/