Opened 4 years ago

Closed 4 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)

0001-Omit-C4-specific-module-check.patch (1011 bytes) - added by Vasilij Schneidermann 4 years ago.
0001-Omit-C4-only-module-check-add-cond-expand-tests.patch (2.7 KB) - added by Vasilij Schneidermann 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by Vasilij Schneidermann

comment:1 Changed 4 years ago by Vasilij Schneidermann

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.

Changed 4 years ago by Vasilij Schneidermann

comment:2 Changed 4 years 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.