Re: How do I add an extra slot to a class?



On Aug 29, 3:51 pm, Saurabh Nanda <saurabhna...@xxxxxxxxx> wrote:
Why is the third form giving me a nil?

(defclass test-class ()
((name
:initarg :name
:initform "test name"
:accessor name)))
(finalize-inheritance (find-class 'test-class))
(class-default-initargs (find-class 'test-class))


:DEFAULT-INITARGS are not the same as the :INITARG forms passed to
slots in DEFCLASS. See section 7.1 in the HyperSpec for a
clarification.


.