Function: eieio--c3-candidate

eieio--c3-candidate is a byte-compiled function defined in eieio-core.el.gz.

Signature

(eieio--c3-candidate CLASS REMAINING-INPUTS)

Documentation

Return CLASS if it can go in the result now, otherwise nil.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-core.el.gz
;;;
;; Method Invocation order: C3
(defun eieio--c3-candidate (class remaining-inputs)
  "Return CLASS if it can go in the result now, otherwise nil."
  ;; Ensure CLASS is not in any position but the first in any of the
  ;; element lists of REMAINING-INPUTS.
  (and (not (let ((found nil))
	      (while (and remaining-inputs (not found))
		(setq found (member class (cdr (car remaining-inputs)))
		      remaining-inputs (cdr remaining-inputs)))
	      found))
       class))