From: Jim Weirich Date: 2004-11-25T13:40:08+09:00 Subject: Re: How to avoid inheriting Object? On Wednesday 24 November 2004 10:32 pm, Yukihiro Matsumoto wrote: > on Thu, 25 Nov 2004 12:19:47 +0900, "trans. (T. Onoma)" writes: > |I think that's good. But you can have "kernelless" object without loosing > |"single class tree": > | > | MyClass < Object < ObjectShell > > I don't think I understand what you mean. What does ObjectShell mean? I'm guessing that ObjectShell is the ultimate blank slate. It is the root of the object system and only provides the absolute minimum number of methods (probably only __id__ and __send__). All normal objects inherit from Object as they do now, but special objects that don't want all the Object stuff by default (e.g. things like Builder or dynamic proxy objects) could inherit from ObjectShell. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)