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:
parent
81211c73cc
commit
ef42490f66
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue