Christophe
Weblog
Wiki
Code
Publications
Music
projects
/
specializable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2130ddc
)
unused stuff
author
Jan Moringen
<jmoringe@techfak.uni-bielefeld.de>
Tue, 18 Feb 2014 03:12:47 +0000
(
04:12
+0100)
committer
Christophe Rhodes
<csr21@cantab.net>
Sun, 2 Mar 2014 20:10:02 +0000
(20:10 +0000)
specializable.lisp
patch
|
blob
|
history
diff --git
a/specializable.lisp
b/specializable.lisp
index e556db4caff1e2a2f0818c97ed64802111a4c097..477342accaf9fa8c424e4deb8c956b354f02ea93 100644
(file)
--- a/
specializable.lisp
+++ b/
specializable.lisp
@@
-44,23
+44,20
@@
(remove-duplicates (mapcar #'sb-mop:method-generic-function (sb-mop:specializer-direct-methods specializer))))
(defclass specializable-generic-function (standard-generic-function)
(remove-duplicates (mapcar #'sb-mop:method-generic-function (sb-mop:specializer-direct-methods specializer))))
(defclass specializable-generic-function (standard-generic-function)
- ((extended-specializers :initform (make-hash-table :test 'equal)
- :reader generic-function-extended-specializers)
- (emf-table :initform (make-hash-table :test 'equal) :reader emf-table)
+ ((emf-table :initform (make-hash-table :test 'equal) :reader emf-table)
(cacheingp :initform t :initarg :cacheingp)
(single-arg-cacheing-p :initform t :initarg :single-arg-cacheing-p))
(:metaclass sb-mop:funcallable-standard-class)
(:default-initargs :method-class (find-class 'specializable-method)))
(cacheingp :initform t :initarg :cacheingp)
(single-arg-cacheing-p :initform t :initarg :single-arg-cacheing-p))
(:metaclass sb-mop:funcallable-standard-class)
(:default-initargs :method-class (find-class 'specializable-method)))
-(defclass specializable-method (standard-method)
- ((lambda-expression :initarg :lambda-expression
- :accessor specializable-method-lambda-expression)))
+;;; TODO: we don't use this class yet, but we might do later
+(defclass specializable-method (standard-method) ())
(defmacro define-extended-specializer (name (gf-var &rest args) &body body)
;; FIXME: unparser
`(setf (get ',name 'extended-specializer-parser)
(defmacro define-extended-specializer (name (gf-var &rest args) &body body)
;; FIXME: unparser
`(setf (get ',name 'extended-specializer-parser)
- (lambda (,gf-var ,@args)
- ,@body)))
+
(lambda (,gf-var ,@args)
+
,@body)))
;; doesn't work, because we'd have to dump GF into the fasl for the macro
;; expansion
;; doesn't work, because we'd have to dump GF into the fasl for the macro
;; expansion