Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DEFCLASS :metaclass structure-class in Allegro

5 views
Skip to first unread message

lisping-forever

unread,
Feb 20, 2005, 5:51:47 PM2/20/05
to
Does anyone know how to define subclasses of structure-classes
as in the example:

(defclass foo ()
((a :initarg :a :accessor a))
(:metaclass structure-class))

This defclass is fine in CMUCL, but fails in Allegro 6.2 with the
error:

:DIRECT-SUPERCLASSES :DIRECT-SLOTS are invalid initargs to
make-instance of class #<STANDARD-CLASS STRUCTURE-CLASS>. The valid
initargs are :PLIST :NAME.

Rahul Jain

unread,
Feb 21, 2005, 12:52:03 AM2/21/05
to
"lisping-forever" <qu...@ai.sri.com> writes:

> This defclass is fine in CMUCL, but fails in Allegro 6.2 with the
> error:
>
> :DIRECT-SUPERCLASSES :DIRECT-SLOTS are invalid initargs to
> make-instance of class #<STANDARD-CLASS STRUCTURE-CLASS>. The valid
> initargs are :PLIST :NAME.

The behavior (initargs, slots, etc) of STRUCTURE-CLASS is unspecified.

--
Rahul Jain
rj...@nyct.net
Professional Software Developer, Amateur Quantum Mechanicist

0 new messages