[Openmcl-devel] Changing initargs for classes

Anders Conradi beque at telia.com
Mon Apr 12 23:23:24 PDT 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