Function: eieio-instance-inheritor-slot-boundp
eieio-instance-inheritor-slot-boundp is a byte-compiled function
defined in eieio-base.el.gz.
Signature
(eieio-instance-inheritor-slot-boundp ARG &rest ARGS)
Implementations
((object eieio-instance-inheritor) slot) in `eieio-base.el'.
Return non-nil if the instance inheritor OBJECT's SLOT is bound. See `slot-boundp' for details on binding slots. The instance inheritor uses unbound slots as a way of cascading cloned slot values, so testing for a slot being bound requires extra steps for this kind of object.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-base.el.gz
(cl-defmethod eieio-instance-inheritor-slot-boundp ((object eieio-instance-inheritor)
slot)
"Return non-nil if the instance inheritor OBJECT's SLOT is bound.
See `slot-boundp' for details on binding slots.
The instance inheritor uses unbound slots as a way of cascading cloned
slot values, so testing for a slot being bound requires extra steps
for this kind of object."
(if (slot-boundp object slot)
;; If it is regularly bound, return t.
t
(if (slot-boundp object 'parent-instance)
(eieio-instance-inheritor-slot-boundp (oref object parent-instance)
slot)
nil)))