From ecc6fc60b34461c8957a2a1fa884fd86a29dab4e Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 9 Apr 2003 15:06:57 +0000 Subject: * variable.c (rb_obj_remove_instance_variable): better message. [ruby-talk:68987] * variable.c (rb_mod_remove_const): ditto. * object.c (rb_obj_ivar_get): ditto. * object.c (rb_obj_ivar_set): ditto. * parse.y (yylex): ditto. * eval.c (rb_mod_define_method): Allow UnboundMethod as parameter. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index b37a74923..ea4112c5b 100644 --- a/parse.y +++ b/parse.y @@ -4271,10 +4271,10 @@ yylex() } if (ISDIGIT(c)) { if (tokidx == 1) { - rb_compile_error("`@%c' is not a valid instance variable name", c); + rb_compile_error("`@%c' is not allowable as an instance variable name", c); } else { - rb_compile_error("`@@%c' is not a valid class variable name", c); + rb_compile_error("`@@%c' is not allowable as a class variable name", c); } } if (!is_identchar(c)) { -- cgit