diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | MANIFEST | 4 | ||||
-rw-r--r-- | eval.c | 8 | ||||
-rw-r--r-- | lib/optparse.rb | 2 | ||||
-rw-r--r-- | parse.y | 2 |
5 files changed, 14 insertions, 10 deletions
@@ -1,3 +1,11 @@ +Fri Jul 18 13:04:36 2003 Yukihiro Matsumoto <matz@ruby-lang.org> + + * eval.c (rb_f_missing): VCALL is called only for LOCAL_ID. no + check required. + + * parse.y (primary): pritmary:tFID generates NODE_FCALL. + [ruby-dev:20641] + Thu Jul 17 18:50:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org> * re.c (match_captures): rename from "groups". @@ -300,9 +300,9 @@ lib/rexml/encodings/EUC-JP.rb lib/rexml/encodings/EUC-JP_decl.rb lib/rexml/encodings/ISO-8859-1.rb lib/rexml/encodings/ISO-8859-1_decl.rb -lib/rexml/encodings/Shift-JIS.rb +lib/rexml/encodings/SHIFT-JIS.rb +lib/rexml/encodings/SHIFT_JIS.rb lib/rexml/encodings/Shift-JIS_decl.rb -lib/rexml/encodings/Shift_JIS.rb lib/rexml/encodings/UNILE.rb lib/rexml/encodings/UNILE_decl.rb lib/rexml/encodings/US-ASCII.rb @@ -4678,12 +4678,8 @@ rb_f_missing(argc, argv, obj) format = "protected method `%s' called for %s%s%s"; } else if (last_call_status & CSTAT_VCALL) { - const char *mname = rb_id2name(id); - - if (('a' <= mname[0] && mname[0] <= 'z') || mname[0] == '_') { - format = "undefined local variable or method `%s' for %s%s%s"; - exc = rb_eNameError; - } + format = "undefined local variable or method `%s' for %s%s%s"; + exc = rb_eNameError; } else if (last_call_status & CSTAT_SUPER) { format = "super: no superclass method `%s'"; diff --git a/lib/optparse.rb b/lib/optparse.rb index 50d72f8a2e..7013b004b2 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1,4 +1,4 @@ -# optparse library, not octopus. +`# optparse library, not octopus. =begin = Summary @@ -1406,7 +1406,7 @@ primary : literal | backref | tFID { - $$ = NEW_VCALL($1); + $$ = NEW_FCALL($1, 0); } | kBEGIN { |