Function: slot-boundp
slot-boundp is a byte-compiled function defined in eieio.el.gz.
Signature
(slot-boundp OBJECT SLOT)
Documentation
Return non-nil if OBJECT's SLOT is bound.
Setting a slot's value makes it bound. Calling slot-makeunbound will
make a slot unbound.
OBJECT can be an instance or a class.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
;;; CLOS queries into classes and slots
;;
(defun slot-boundp (object slot)
"Return non-nil if OBJECT's SLOT is bound.
Setting a slot's value makes it bound. Calling `slot-makeunbound' will
make a slot unbound.
OBJECT can be an instance or a class."
(declare (compiler-macro eieio--check-slot-name))
;; Skip typechecking while retrieving this value.
(let ((eieio-skip-typecheck t))
;; Return nil if the magic symbol is in there.
(not (eq (cond
((eieio-object-p object) (eieio-oref object slot))
((symbolp object) (eieio-oref-default object slot))
(t (signal 'wrong-type-argument (list 'eieio-object-p object))))
eieio--unbound))))