Function: slot-unbound
slot-unbound is a byte-compiled function defined in eieio.el.gz.
Signature
(slot-unbound OBJECT CLASS SLOT-NAME FN)
Documentation
Slot unbound is invoked during an attempt to reference an unbound slot.
Implementations
(slot-unbound (OBJECT eieio-instance-inheritor) CLASS SLOT-NAME FN) in `eieio-base.el'.
Undocumented
(slot-unbound (OBJECT eieio-default-superclass) CLASS SLOT-NAME FN) in `eieio.el'.
Slot unbound is invoked during an attempt to reference an unbound slot. OBJECT is the instance of the object being reference. CLASS is the class of OBJECT, and SLOT-NAME is the offending slot. This function throws the signal `unbound-slot'. You can overload this function and return the value to use in place of the unbound value. Argument FN is the function signaling this error. Use `slot-boundp' to determine if a slot is bound or not.
In CLOS, the argument list is (CLASS OBJECT SLOT-NAME), but EIEIO can only dispatch on the first argument, so the first two are swapped.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
(cl-defgeneric slot-unbound (object class slot-name fn)
"Slot unbound is invoked during an attempt to reference an unbound slot.")