[armedbear-devel] Unbound initargs slot in slot-definitions
Rudolf Schlatte
rudi at constantly.at
Wed Aug 15 21:17:09 UTC 2012
On Aug 13, 2012, at 22:43, Stas Boukarev <stassats at 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
More information about the armedbear-devel
mailing list