[#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 13:44:19 UTC
List: ruby-core #1080
Hi,

At Mon, 26 May 2003 20:37:30 +0900,
> n> Must not be.
> 
>  There is also "invalid inspect_tbl" in array.c, no ?

It is fixed already in array.c 1.121.

> n> +	    if (!RCLASS(ruby_frame->last_class)->super) {
> n> +		rb_undefined(ruby_frame->self, ruby_frame->orig_func, argc, argv, 0);
> n> +	    }
> 
>  Well, someone will not understand why it work with "def initialize" and
>  don't work with "define_method(:initialize)", no ?

You're right.  I guess ruby_frame->last_class should not be a
T_MODULE but T_CLASS or T_ICLASS.

-- 
Nobu Nakada

In This Thread