mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 14:21:10 +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:
parent
81211c73cc
commit
ef42490f66
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@
|
||||||
(n-specializers
|
(n-specializers
|
||||||
(if (list? specializers)
|
(if (list? specializers)
|
||||||
(length specializers)
|
(length specializers)
|
||||||
(abs (slot-ref (method-cache-generic-function exp)
|
(+ 1 (slot-ref (method-cache-generic-function exp)
|
||||||
'n-specialized)))))
|
'n-specialized)))))
|
||||||
(let* ((types (map class-of (first-n args n-specializers)))
|
(let* ((types (map class-of (first-n args n-specializers)))
|
||||||
(entry+cmethod (compute-entry-with-cmethod applicable types)))
|
(entry+cmethod (compute-entry-with-cmethod applicable types)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue