* 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
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)))