[plt-scheme] parameterize modules

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Mon Oct 2 23:31:23 EDT 2006

Is there a way to make a module parameterized so that I can load it
twice in different contexts? What Id like to achieve is require'ing the
same module but load a different C library with FFI depending on the
parameter.

(require (prefix new- "mymodule.ss") (parameter "newlib"))
(require (prefix old- "mymodule.ss") (parameter "oldlib"))

Or something like that.


Posted on the users mailing list.