From: Dave Thomas Date: 2001-07-16T22:40:31+09:00 Subject: [ruby-talk:17920] Re: Deriving from Class matz@ruby-lang.org (Yukihiro Matsumoto) writes: > Ah, if I can time to check them. Or you can remove the following from > object.c, and play around to see how it goes wrong. ;-) > > static VALUE > rb_class_s_inherited() > { > rb_raise(rb_eTypeError, "can't make subclass of Class"); > return Qnil; /* dummy */ > } Perhaps the problem is that the subclass won't behave like a true Class object, as rb_type() won't return T_CLASS. This means you wouldn't be able to use this subclass where you could otherwise use a class. Dave