[plt-scheme] load-extension and modules?

From: dvanhorn at emba.uvm.edu (dvanhorn at emba.uvm.edu)
Date: Sat Aug 17 18:10:09 EDT 2002


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
  (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

David Van Horn

dvanhorn at cs dot uvm dot edu

Posted on the users mailing list.