[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with :METACLASS option
- To: commonloops.pa@Xerox.COM
- Subject: Problems with :METACLASS option
- From: Jim Kempf <kempf%hplabsc@hplabs.HP.COM>
- Date: Tue, 19 May 87 10:02:22 pdt
The :METACLASS option to DEFCLASS is causing some circularity problems.
Supposing I want to have a class at the top of the class hierarchy,
but the metaclass is not ESSENTIAL-CLASS (or STANDARD-CLASS in the
CLOS spec). Then, after defining the metaclass, I might try to
define it as:
(defclass top-class () () (:metaclass new-metaclass))
But this gives me a meta/super incompatibility error in
CHECK-SUPER-METACLASS-COMPATIBILITY, because class OBJECT is included
by default, even if the inheritance list is NIL (as in this case).
Jim Kempf email@example.com