[前][次][番号順一覧][スレッド一覧]

ruby-changes:2129

From: ko1@a...
Date: 4 Oct 2007 17:09:39 +0900
Subject: [ruby-changes:2129] matz - Ruby:r13620 (trunk): * re.c (ignorecase_setter): change warning message.

matz	2007-10-04 17:09:06 +0900 (Thu, 04 Oct 2007)

  New Revision: 13620

  Modified files:
    trunk/ChangeLog
    trunk/re.c
    trunk/string.c

  Log:
    * re.c (ignorecase_setter): change warning message.
    
    * re.c (ignorecase_getter): now gives warning.
    
    * string.c (rb_str_cmp_m): update RDoc document.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=13620&r2=13619
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13620&r2=13619
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=13620&r2=13619

Index: re.c
===================================================================
--- re.c	(revision 13619)
+++ re.c	(revision 13620)
@@ -2317,13 +2317,14 @@
 static VALUE
 ignorecase_getter(void)
 {
+    rb_warn("variable $= is no longer effective");
     return Qfalse;
 }
 
 static void
 ignorecase_setter(VALUE val, ID id)
 {
-    rb_warn("modifying %s is deprecated", rb_id2name(id));
+    rb_warn("variable $= is no longer effective; ignored");
 }
 
 static VALUE
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13619)
+++ ChangeLog	(revision 13620)
@@ -1,4 +1,4 @@
-Thu Oct  4 16:55:40 2007  Yukihiro Matsumoto  <matz@r...>
+Thu Oct  4 17:08:08 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* re.c (kcode_setter): Perl-ish global variable `$=' no longer
 	  effective.
@@ -9,6 +9,12 @@
 
 	* time.c (Init_Time): remove obsolete Time::times.
 
+	* re.c (ignorecase_setter): change warning message.
+
+	* re.c (ignorecase_getter): now gives warning.
+
+	* string.c (rb_str_cmp_m): update RDoc document.
+
 Thu Oct  4 16:28:33 2007  Nobuyoshi Nakada  <nobu@r...>
 
 	* encoding.c (rb_obj_encoding): returns encoding of the given object.
Index: string.c
===================================================================
--- string.c	(revision 13619)
+++ string.c	(revision 13620)
@@ -1293,9 +1293,7 @@
  *  <i>other_str</i> is equal to, and +1 if <i>other_str</i> is greater than
  *  <i>str</i>. If the strings are of different lengths, and the strings are
  *  equal when compared up to the shortest length, then the longer string is
- *  considered greater than the shorter one. If the variable <code>$=</code> is
- *  <code>false</code>, the comparison is based on comparing the binary values
- *  of each character in the string. In older versions of Ruby, setting
+ *  considered greater than the shorter one. In older versions of Ruby, setting
  *  <code>$=</code> allowed case-insensitive comparisons; this is now deprecated
  *  in favor of using <code>String#casecmp</code>.
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]