Function: eieio--perform-slot-validation

eieio--perform-slot-validation is a byte-compiled function defined in eieio-core.el.gz.

Signature

(eieio--perform-slot-validation SPEC VALUE)

Documentation

Return non-nil if SPEC does not match VALUE.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-core.el.gz
;;; Slot type validation

;; This is a hideous hack for replacing `typep' from cl-macs, to avoid
;; requiring the CL library at run-time.  It can be eliminated if/when
;; `typep' is merged into Emacs core.

(defun eieio--perform-slot-validation (spec value)
  "Return non-nil if SPEC does not match VALUE."
  (or (eq spec t)			; t always passes
      (eq value eieio--unbound)		; unbound always passes
      (cl-typep value spec)))