summaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-04 08:09:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-04 08:09:06 +0000
commit17d56079b065a14bd9ad7b0d5c7cf34e9f38ee2b (patch)
tree8d22de6d7b9a2adf2d7e42c7cb6de8663d4c603a /re.c
parentc936d43ad20a43ad9a972e8be5ceb65d61a38e82 (diff)
downloadruby-17d56079b065a14bd9ad7b0d5c7cf34e9f38ee2b.tar.gz
ruby-17d56079b065a14bd9ad7b0d5c7cf34e9f38ee2b.tar.xz
ruby-17d56079b065a14bd9ad7b0d5c7cf34e9f38ee2b.zip
* re.c (ignorecase_setter): change warning message.
* re.c (ignorecase_getter): now gives warning. * string.c (rb_str_cmp_m): update RDoc document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/re.c b/re.c
index 00d283972..f2e755e01 100644
--- a/re.c
+++ b/re.c
@@ -2317,13 +2317,14 @@ kcode_setter(VALUE val)
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