mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
2d28a9b130
commit
909c2274f9
5 changed files with 14 additions and 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>
|
Thu Jul 17 18:50:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* re.c (match_captures): rename from "groups".
|
* re.c (match_captures): rename from "groups".
|
||||||
|
|
4
MANIFEST
4
MANIFEST
|
@ -300,9 +300,9 @@ lib/rexml/encodings/EUC-JP.rb
|
||||||
lib/rexml/encodings/EUC-JP_decl.rb
|
lib/rexml/encodings/EUC-JP_decl.rb
|
||||||
lib/rexml/encodings/ISO-8859-1.rb
|
lib/rexml/encodings/ISO-8859-1.rb
|
||||||
lib/rexml/encodings/ISO-8859-1_decl.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_decl.rb
|
||||||
lib/rexml/encodings/Shift_JIS.rb
|
|
||||||
lib/rexml/encodings/UNILE.rb
|
lib/rexml/encodings/UNILE.rb
|
||||||
lib/rexml/encodings/UNILE_decl.rb
|
lib/rexml/encodings/UNILE_decl.rb
|
||||||
lib/rexml/encodings/US-ASCII.rb
|
lib/rexml/encodings/US-ASCII.rb
|
||||||
|
|
8
eval.c
8
eval.c
|
@ -4678,12 +4678,8 @@ rb_f_missing(argc, argv, obj)
|
||||||
format = "protected method `%s' called for %s%s%s";
|
format = "protected method `%s' called for %s%s%s";
|
||||||
}
|
}
|
||||||
else if (last_call_status & CSTAT_VCALL) {
|
else if (last_call_status & CSTAT_VCALL) {
|
||||||
const char *mname = rb_id2name(id);
|
format = "undefined local variable or method `%s' for %s%s%s";
|
||||||
|
exc = rb_eNameError;
|
||||||
if (('a' <= mname[0] && mname[0] <= 'z') || mname[0] == '_') {
|
|
||||||
format = "undefined local variable or method `%s' for %s%s%s";
|
|
||||||
exc = rb_eNameError;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (last_call_status & CSTAT_SUPER) {
|
else if (last_call_status & CSTAT_SUPER) {
|
||||||
format = "super: no superclass method `%s'";
|
format = "super: no superclass method `%s'";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# optparse library, not octopus.
|
`# optparse library, not octopus.
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
= Summary
|
= Summary
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -1406,7 +1406,7 @@ primary : literal
|
||||||
| backref
|
| backref
|
||||||
| tFID
|
| tFID
|
||||||
{
|
{
|
||||||
$$ = NEW_VCALL($1);
|
$$ = NEW_FCALL($1, 0);
|
||||||
}
|
}
|
||||||
| kBEGIN
|
| kBEGIN
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue