From: Hal Fulton Date: 2004-06-23T19:57:03+09:00 Subject: Re: A question about Class and Object gabriele renzi wrote: >>That is because you're trying to extend the concept of Class-ness, not >>of a particular class. That will be too hard to maintain, so Ruby >>forbids it. > > > actually, does really ruby forbids it? > > >>>class My< Class >>>end > > TypeError: can't make subclass of Class > from (irb):1 > >>>My=Class.new(Class) > > => My > >>>My.superclass > > => Class > >>>My.new > > TypeError: wrong instance allocation > from (irb):7:in `new' > from (irb):7 > > strange behaviour :-) I think strange behavior is to be expected when you do strange things. Just my opinion. This reminds me of my D&D days, when someone put a Portable Hole inside a Bag of Holding... Hal