ruby-changes:9311
From: knu <ko1@a...>
Date: Wed, 17 Dec 2008 20:00:33 +0900 (JST)
Subject: [ruby-changes:9311] Ruby:r20849 (ruby_1_8): * object.c (rb_any_to_a): Always use "... is deprecated" for a
knu 2008-12-17 20:00:23 +0900 (Wed, 17 Dec 2008) New Revision: 20849 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20849 Log: * object.c (rb_any_to_a): Always use "... is deprecated" for a deprecation warning to make it easier to find out what is deprecated and going to be removed. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/object.c Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 20848) +++ ruby_1_8/ChangeLog (revision 20849) @@ -1,3 +1,9 @@ +Wed Dec 17 19:53:48 2008 Akinori MUSHA <knu@i...> + + * object.c (rb_any_to_a): Always use "... is deprecated" for a + deprecation warning to make it easier to find out what is + deprecated and going to be removed. + Wed Dec 17 19:53:08 2008 Akinori MUSHA <knu@i...> * string.c (rb_str_each): Add a deprecation warning to Index: ruby_1_8/object.c =================================================================== --- ruby_1_8/object.c (revision 20848) +++ ruby_1_8/object.c (revision 20849) @@ -285,7 +285,7 @@ * method, the return value is an array containing <code>self</code>. * However, this latter behavior will soon be obsolete. * - * self.to_a #=> -:1: warning: default `to_a' will be obsolete + * self.to_a #=> -:1: warning: Object#to_a is deprecated * "hello".to_a #=> ["hello"] * Time.new.to_a #=> [39, 54, 8, 9, 4, 2003, 3, 99, true, "CDT"] */ @@ -295,7 +295,7 @@ rb_any_to_a(obj) VALUE obj; { - rb_warn("default `to_a' will be obsolete"); + rb_warn("Object#to_a is deprecated"); return rb_ary_new3(1, obj); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/