broken importing with define-record-type
Bug #162741 reported by
Michael D. Adams
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Released
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
Me and Ikarus' libraries just don't seem to get along. Shouldn't this work?
$ cat lib1.ss
(library (lib1)
(export def-dat)
(import (rnrs))
(define-syntax def-dat
(syntax-rules ()
((_ x) (define-record-type x)))))
$ cat lib2.ss
(library (lib2)
(export b?)
(import (rnrs) (lib1))
(def-dat b))
$ cat test.ss
(import (rnrs) (lib1) (lib2))
(def-dat a)
(write a?)
$ ikarus --r6rs-script test.ss
Unhandled exception:
Condition components:
1. &error
2. &who: expander
3. &message: "cannot export unbound identifier"
4. &irritants: (b?)
Changed in ikarus: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It is unspecified (as far as R6RS is concerned) whether this should work or not. In Ikarus, it should work. Will fix.