[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Loading multiple versions of a Module
From: |
Martin Becze |
Subject: |
Loading multiple versions of a Module |
Date: |
Fri, 1 May 2020 17:28:00 -0500 |
Guile currently doesn't allow loading multiple versions of a Module. For
example this will not work.
--- start.scm
(import (a) (b (2)))
(helloA)
(helloB)
--- a/a.scm
(library (a)
(export helloA)
(import (rnrs) (b (1)))
(define helloA (lambda ()
(display "hello from A1\n")
(helloB))))
--- b1/b.scm
(library (b (1))
(export helloB)
(import (rnrs)))
(define helloB (lambda ()
(display "hello from B1\n")))
--- b2/b.scm
(library (b (2))
(export helloB)
(import (rnrs))
(define helloB (lambda () (display "hello from B2\n"))))
Is there are away to get around this? What is the reason for this
behavior? Is it part of r6rs or something?
Thanks!,
-Martin
- Loading multiple versions of a Module,
Martin Becze <=