On 2012-07-12 20:50, H. S. Teoh wrote:

Having a class RawObject as a superclass of Object is an equally good
solution. Declare a class without a base class, and the base class
defaults to Object.  Explicitly write "class MyClass : RawObject" and
you get a class without the stuff in Object. If you want an entire
hierarchy free of the stuff in Object, just write "class MyBaseClass :
RawObject" and inherit everything from it.

This has the advantage of _not_ breaking any existing code, and the
people who want to opt out of Object, can.

Exactly, this is also what Ruby 1.9 does.

--
/Jacob Carlborg


Reply via email to