summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-18 05:29:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-18 05:29:46 +0000
commit909c2274f9a7d4ee4d4267f9f6dcb35b21a62109 (patch)
tree1d6c81bcd387223e9b2735a9d94f96175b2b9a0b /eval.c
parent2d28a9b130660c81c8d31202503d3a84ea8fd81c (diff)
* 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
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/eval.c b/eval.c
index 7068bb2..f520bfa 100644
--- a/eval.c
+++ b/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'";