Function: eieio--validate-class-slot-value
eieio--validate-class-slot-value is a byte-compiled function defined
in eieio-core.el.gz.
Signature
(eieio--validate-class-slot-value CLASS SLOT-IDX VALUE SLOT)
Documentation
Make sure that for CLASS referencing SLOT-IDX, VALUE is valid.
Checks the :type specifier. SLOT is the slot that is being checked, and is only used when throwing an error.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-core.el.gz
(defun eieio--validate-class-slot-value (class slot-idx value slot)
"Make sure that for CLASS referencing SLOT-IDX, VALUE is valid.
Checks the :type specifier.
SLOT is the slot that is being checked, and is only used when throwing
an error."
(if eieio-skip-typecheck
nil
(let ((st (cl--slot-descriptor-type (aref (eieio--class-class-slots class)
slot-idx))))
(if (not (eieio--perform-slot-validation st value))
(signal 'invalid-slot-type
(list (cl--class-name class) slot st value))))))