[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: [1.8] terminated object / invalid inspect_tbl

From: nobu.nokada@...
Date: 2003-05-26 11:32:30 UTC
List: ruby-core #1078
Hi,

At Mon, 26 May 2003 20:16:51 +0900,
ts wrote:
>  Normal these messages ?

Must not be.


Index: eval.c
===================================================================
RCS file: /cvs/ruby/src/ruby/eval.c,v
retrieving revision 1.445
diff -u -2 -p -r1.445 eval.c
--- eval.c	26 May 2003 08:22:27 -0000	1.445
+++ eval.c	26 May 2003 11:31:01 -0000
@@ -107,4 +107,5 @@ static VALUE rb_cUnboundMethod;
 static VALUE umethod_bind _((VALUE, VALUE));
 static VALUE rb_mod_define_method _((int, VALUE*, VALUE));
+static VALUE rb_undefined _((VALUE, ID, int, const VALUE *, int));
 
 static int scope_vmode;
@@ -3016,4 +3017,7 @@ rb_eval(self, n)
 	    PUSH_ITER(ruby_iter->iter?ITER_PRE:ITER_NOT);
 	    SET_CURRENT_SOURCE();
+	    if (!RCLASS(ruby_frame->last_class)->super) {
+		rb_undefined(ruby_frame->self, ruby_frame->orig_func, argc, argv, 0);
+	    }
 	    result = rb_call(RCLASS(ruby_frame->last_class)->super,
 			     ruby_frame->self, ruby_frame->orig_func,


-- 
Nobu Nakada

In This Thread