From: nobu.nokada@... Date: 2003-05-26T20:32:30+09:00 Subject: Re: [1.8] terminated object / invalid inspect_tbl 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