[r6rs-discuss] Proposed features for small Scheme, part 9: modules

John Cowan cowan at ccil.org
Mon Oct 12 23:31:16 EDT 2009


Alaric Snell-Pym scripsit:

> So you're allowed to put the imports inside cond-expand if they're in
> a separate file that gets included, and not otherwise?

No.  The idea is this:

(module open-gl
  (export ...)
  (cond-expand
    (has-open-gl (include "open-gl-glue.scm"))
    (else (include "open-gl-emulator.scm"))))

-- 
By Elbereth and Luthien the Fair, you shall     cowan at ccil.org
have neither the Ring nor me!  --Frodo          http://www.ccil.org/~cowan



More information about the r6rs-discuss mailing list