From: Rob Rypka Date: 2005-10-03T11:51:41+09:00 Subject: Re: Cannot subclass Class? On 10/2/05, itsme213 wrote: > 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? I was trying to figure out exactly what metaclasses allow you to do, and I came across the following quote: Metaclasses are deeper magic than 99% of users should ever worry about. If you wonder whether you need them, you don't (the people who actually need them know with certainty that they need them, and don't need an explanation about why). -- Python Guru Tim Peters If you've got an example of something you want to do with metaclasses in Ruby, post it here. I'll bet you get a lot of suggestions that are less "brain-melting," as the Python folks like to say. Remember, you can do a lot by including Mixin modules. -- Rob