Opened 8 months ago

Closed 6 months 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)

0001-Omit-C4-specific-module-check.patch (1011 bytes) - added by wasamasa 6 months ago.
0001-Omit-C4-only-module-check-add-cond-expand-tests.patch (2.7 KB) - added by wasamasa 6 months ago.

Download all attachments as: .zip

Change History (4)

Changed 6 months ago by wasamasa

comment:1 Changed 6 months ago by wasamasa

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.

comment:2 Changed 6 months ago by felix winkelmann

Resolution: fixed
Status: newclosed

Patch applied and a new version has been tagged (1.0.2)

Note: See TracTickets for help on using tickets.