This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Source for wiki CondExpandShinn version 1

author

cowan

comment


    

ipnr

127.10.177.1

name

CondExpandShinn

readonly

0

text

In the small language you can test library availability with:

{{{
(define-library (foo bar)
  ...
  (cond-expand
   ((library (scheme regexp))
    ...)
   (else
    ...)))
}}}

but you might want to be sure that the `regexp-unicode` feature was available, like this:

{{{
(define-library (foo bar)
  ...
  (cond-expand
   ((library-provides (scheme regexp) regexp-unicode)
    ...)
   (else
    ...)))
}}}

time

2013-11-28 15:29:11

version

1