summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 08:39:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 08:39:43 +0000
commitc146322cd7447ffd41c586ba757d283c66ac9485 (patch)
tree5d10908c09613d35d823805e6b791fa669fd4a10 /eval.c
parent2ff14de770bff837b9e379aef9acee656e1851b8 (diff)
downloadruby-c146322cd7447ffd41c586ba757d283c66ac9485.tar.gz
ruby-c146322cd7447ffd41c586ba757d283c66ac9485.tar.xz
ruby-c146322cd7447ffd41c586ba757d283c66ac9485.zip
* error.c (NameError::message): internal use only.
* eval.c (rb_method_missing): use hidden constant. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 85ed4592a..4fd9cc6a5 100644
--- a/eval.c
+++ b/eval.c
@@ -5230,7 +5230,8 @@ rb_method_missing(argc, argv, obj)
int n = 0;
VALUE args[3];
- args[n++] = rb_funcall(exc, rb_intern("message"), 3, rb_str_new2(format), obj, argv[0]);
+ args[n++] = rb_funcall(rb_const_get(exc, rb_intern("message")), '!',
+ 3, rb_str_new2(format), obj, argv[0]);
args[n++] = argv[0];
if (exc == rb_eNoMethodError) {
args[n++] = rb_ary_new4(argc-1, argv+1);