[Openmcl-devel] Changing initargs for classes

Anders Conradi beque at telia.com
Tue Apr 13 06:23:24 UTC 2004


Hi,

Shouldn't I be able to change the set of initargs for a class?

For example, why doesn't this work?

? (defclass foo () ((foo-slot :initarg foo-slot)))
#<STANDARD-CLASS FOO>
? (defclass foo () ((foo-slot :initarg :foo-slot)))
#<STANDARD-CLASS FOO>
? (make-instance 'foo :foo-slot 2)
 > Error in process listener(1): :FOO-SLOT is an invalid initarg to 
INITIALIZE-INSTANCE for #<STANDARD-CLASS FOO>.
 >                               Valid initargs: (FOO-SLOT).
 > While executing: CCL::CHECK-INITARGS
 > Type :POP to abort.
Type :? for other options.

// Anders




More information about the Openmcl-devel mailing list