Opened 6 years ago
Closed 5 years ago
#1697 closed defect (fixed)
R7RS cond-expand library form is broken
| Reported by: | zaifir | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | someday |
| Component: | unknown | Version: | 5.2.0 |
| Keywords: | Cc: | ||
| Estimated difficulty: |
Description
The r7rs egg's support for the (library ...) form in cond-expand is broken. Running the following example
(import (r7rs))
(define spiffy-installed?
(cond-expand
((library (spiffy)) #t)
(else #f)))
gives this error:
Error: during expansion of (cond-expand ...) - unbound variable: ##sys#core-library-modules
Attachments (2)
Change History (4)
Changed 5 years ago by
| Attachment: | 0001-Omit-C4-specific-module-check.patch added |
|---|
comment:1 Changed 5 years ago by
Changed 5 years ago by
| Attachment: | 0001-Omit-C4-only-module-check-add-cond-expand-tests.patch added |
|---|
comment:2 Changed 5 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Patch applied and a new version has been tagged (1.0.2)
Note: See
TracTickets for help on using
tickets.

This particular error originates from two checks that are no longer necessary in C5 due to unification of modules and units. Here's a patch doing the necessary cond-expand.