internal (import) allows redefinitions at the repl
Bug #270187 reported by
Abdulaziz Ghuloum
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
test.ss:
(import (ikarus))
(library (X) (export a) (import (ikarus)) (define a 'X))
(library (Y) (export a) (import (ikarus)) (define a 'Y))
(pretty-print
(let ()
(import (X))
(import (Y))
a))
$ ikarus test.ss
Ikarus Scheme version 0.0.3+ (revision 1599, build 2008-09-13, 64-bit)
Copyright (c) 2006-2008 Abdulaziz Ghuloum
Y
$ ikarus --r6rs-script test.ss
Unhandled exception:
Condition components:
1. &who: a
2. &message: "cannot redefine"
3. &syntax:
form: a
subform: #f
4. &trace: #<syntax a>
Related branches
Changed in ikarus: | |
assignee: | nobody → aghuloum |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in ikarus: | |
milestone: | none → 0.0.4 |
To post a comment you must log in.
Hi
A question:
Given the about X and Y libraries, would it be correct to import them into separate lexical scopes? Eg:
(let ()
(import (X))
a)
(let ()
(import (Y))
a)
Cheers
leppie