[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Smalltalk question
- To: <michael>
- Subject: Smalltalk question
- From: Eric Dean Tribble <tribble>
- Date: Mon, 5 Feb 90 10:08:29 PST
- Cc: <xanatech>
- In-reply-to: <Michael>,15 PST <9002051622.AA18029@xanadu>
Why do VoidClass an NullClass (X++ translator stuff) and ClassBuilder
(apparently native smalltalk kernel code) override the message "class"?
They're all subclasses of Object, which defines it in the same way.
I would think they'd inherit.
Some <primitive> magic, perhaps?
VoidClass and NullClass were originally *not* subclasses of Object so
that they errored on any message send. In order to survive, they
needed to implement some of the basic object functionality. I had
sufficient trouble handling them (they didn't implement things the
debugger expected, etc.) that I just made them a subclass of object
again. ClassBuilder is probably some primitive magic.
dean