[plt-scheme] Using a C/C++ extension in a module

From: Paul Steckler (steck at ccs.neu.edu)
Date: Mon Apr 7 14:10:29 EDT 2003

> I understand that doing (load-extension "x.dll") binds all 
> the variables in 
> that extension to the top-level environment. How do I make 
> the same thing 
> happen in a module? That is, I want to use an extension, but 
> to confine its 
> bindings only to within that module. This doesn't work.

Create a module within the extension that exports the desired 
bindings.  Then use `require' to import that module.

-- Paul





Posted on the users mailing list.