[plt-scheme] load-extension and modules?

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sat Aug 17 19:13:56 EDT 2002

dvanhorn at emba.uvm.edu wrote:

> I have an extension "x.so" that defines a procedure,
> #<primitive:x>. I'd like to use the extension in a
> module, eg.
>
> (module m
>   mzscheme
>   (provide y)
>   (load-extension "x.so")
>   (define (y) (x 1)))
>
> is this possible? With this example, I get
>
>    STDIN::485: compile: unbound variable in module in: x

In what namespace does your extension put x?

--
Jens Axel Søgaard




Posted on the users mailing list.