From: ts Date: 2001-07-16T22:53:17+09:00 Subject: [ruby-talk:17921] Re: Deriving from Class >>>>> "D" == Dave Thomas writes: D> Perhaps the problem is that the subclass won't behave like a true D> Class object, as rb_type() won't return T_CLASS. No, it will have the type T_CLASS. This is a class :-) This make something strange if I'm right (A is the new class) class A < Class; end +------------------+ | | Object---->(Object) | ^ ^ ^ ^ | | | | | | | | +-----+ +---------+ | | | | | | | +-----------+ | | | | | | | +------+ | Module--->(Module) | | | ^ ^ | OtherClass-->(OtherClass) | | | | | | A --> Class---->(Class) | | ^ ^ | | | | | | +---------|------+ v | (A) ---------------+ Guy Decoux