Using irb in 1.6.7, an attempt to subclass Class gives:

TypeError: can't make subclass of Class
         from (irb):3:in `inherited'
         from (irb):3

The same error is given using a program.

1.  Is the difference between 1.6 and 1.7 intentional?

2.  If you can't define a method for an attempted subclass of Class, 
have you actually created a subclass of Class in 1.7?

On Thursday, December 12, 2002, at 08:05 AM, ts wrote:

>>>>>> "d" == dblack  <dblack / candle.superlink.net> writes:
>
> d> I'm now researching that question :-)
>
>  Just an example (it's 1.7)
>
> pigeon% cat b.rb
> #!./ruby
> class A < Class
>    def self.a
>       p "a"
>    end
>
>    def a
>       p "a"
>    end
> end
>
> b = A.new
> b.a
> pigeon%
>
> pigeon% b.rb
> ./b.rb:13: undefined method `a' for #<Class:0x401ac244> (NoMethodError)
> pigeon%
>
>
> Guy Decoux
>