From: gabriele renzi Date: 2005-10-03T15:11:46+09:00 Subject: Re: Cannot subclass Class? itsme213 ha scritto: > irb(main):006:0> class MC < Class > irb(main):007:1> end > TypeError: can't make subclass of Class > > Why is this? Is it a language restriction or a 1.8.2 limitation? > > Are there other ways to define new meta-classes? funnily enough, you can subclass Class with Class.new, but it will raise an exception when you try to instantiate :) I think most of the use for metaclasses (in the pythonic way you seem to be searching) can be achieved with a mixin with proper module_function's