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

John Cowan cowan at ccil.org
Tue Oct 13 12:22:26 EDT 2009


Alaric Snell-Pym scripsit:

> >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"))))
> 
> Ah, but where in this appears your import of the OpenGL library, if
> it's available? :-)

The actual library is written in C, and I assume we don't import C
source into Scheme.  The "open-gl-glue.scm" would be Scheme code
that uses the FFI to talk to OpenGL itself.

-- 
Go, and never darken my towels again!           John Cowan
        --Rufus T. Firefly                      http://ccil.org/~cowan



More information about the r6rs-discuss mailing list