File: closer-clasp.lisp

package info (click to toggle)
cl-closer-mop 2%3A20250303.git53221de-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 260 kB
  • sloc: lisp: 1,997; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(in-package :closer-mop)

;; TODO FIXME this below is untested
(cl:defmethod compute-effective-method-function ((gf standard-generic-function) effective-method options)
  (declare (optimize (speed 3) (space 0) (compilation-speed 0)))
  (when options
    (cerror "Ignore these options."
            "This version of compute-effective-method-function does not support method combination options: ~S"
            options))
  (coerce `(lambda (.method-args. .next-methods. &rest passed-arguments)
             ,effective-method)
          'function)
  ;; alternatively
  #+nil
  (coerce `(lambda (dummy-method-args .next-methods. &va-rest .method-args.)
             ,effective-method)
          'function))

(declaim (inline eql-specializer-p))
(defun eql-specializer-p (thing)
  (typep thing 'eql-specializer))

(eval-when (:compile-toplevel :load-toplevel :execute)
  (pushnew :closer-mop *features*))