* 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]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-07-18 05:29:46 +00:00
Родитель 2d28a9b130
Коммит 909c2274f9
5 изменённых файлов: 14 добавлений и 10 удалений

Просмотреть файл

@ -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

8
eval.c
Просмотреть файл

@ -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'";

Просмотреть файл

@ -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
{