On Aug 13, 2012, at 22:43, Stas Boukarev stassats@gmail.com wrote:
Having two classes: (defclass slot-d-1 (mop:standard-direct-slot-definition) ()) (defclass slot-d-2 (mop:standard-direct-slot-definition) (a))
(slot-boundp (make-instance 'slot-d-2) 'sys::initargs) => T
(slot-boundp (make-instance 'slot-d-2) 'sys::initargs) => NIL
So, having a slot makes initargs unbound.
Hmm, I wonder whether this comment in SlotDefinitionClass.java:
/** * For internal use only. This constructor hardcodes the layout of the class, and can't be used * to create arbitrary subclasses of slot-definition. */
has anything to do with it. Need to do some thinking and code reading on this one.
Rudi