1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

* goops/dispatch.scm (method-cache-install!): Use n-specialized +

1 args for type matching.  (Thanks to Lars J. Aas.)
This commit is contained in:
Mikael Djurfeldt 2000-11-07 02:19:03 +00:00
parent 81211c73cc
commit ef42490f66

View file

@ -261,7 +261,7 @@
(n-specializers
(if (list? specializers)
(length specializers)
(abs (slot-ref (method-cache-generic-function exp)
(+ 1 (slot-ref (method-cache-generic-function exp)
'n-specialized)))))
(let* ((types (map class-of (first-n args n-specializers)))
(entry+cmethod (compute-entry-with-cmethod applicable types)))