guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] branch master updated: Fix duplicates handlers for inter


From: Andy Wingo
Subject: [Guile-commits] branch master updated: Fix duplicates handlers for interfaces that use interfaces
Date: Wed, 28 Apr 2021 16:07:30 -0400

This is an automated email from the git hooks/post-receive script.

wingo pushed a commit to branch master
in repository guile.

The following commit(s) were added to refs/heads/master by this push:
     new 19f38a3  Fix duplicates handlers for interfaces that use interfaces
19f38a3 is described below

commit 19f38a38fde7da5fbcf29d0ebc4574e993210110
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Wed Apr 28 22:04:37 2021 +0200

    Fix duplicates handlers for interfaces that use interfaces
    
    * module/ice-9/boot-9.scm (duplicate-handlers): Use module-variable
    instead of module-local-variable in the warn-override-core, first, and
    last handlers.  Fixes #47084 mostly, though relative to pre-3.0 there is
    still a difference in that a module needs to explicitly declare which
    bindings are intended as replacements -- a binding being a replacement
    is a property of the module in 3.0, rather than the variable as was the
    case before 3.0.
---
 module/ice-9/boot-9.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm
index 165fa25..251feda 100644
--- a/module/ice-9/boot-9.scm
+++ b/module/ice-9/boot-9.scm
@@ -4152,13 +4152,13 @@ but it fails to load."
                      (module-name module)
                      (module-name int2)
                      name)
-             (module-local-variable int2 name))))
+             (module-variable int2 name))))
 
     (define (first module name int1 val1 int2 val2 var val)
-      (or var (module-local-variable int1 name)))
+      (or var (module-variable int1 name)))
 
     (define (last module name int1 val1 int2 val2 var val)
-      (module-local-variable int2 name))
+      (module-variable int2 name))
 
     (define (noop module name int1 val1 int2 val2 var val)
       #f)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]