[plt-scheme] modules and extensions
At Sat, 12 Apr 2003 23:02:02 -0400, "Pedro Pinto" wrote:
> My extension provides a function, load-library, which when invoked
> will load a text file and based on the contents of the that file
> create a new module containing a set of bindings. The module name is
> dependent on the contents of said file and is returned by
> load-library.
>
> So how can I import the bindings created?
>
> I tried
>
> (require (load-library "mylibrary"))
>
> which of course does not work since what is returned is a module name and
> not a file.
You'll probably have to change the module-name resolver to recognize
`load-library'. The moudle-name resolver is set through the
`current-module-name-resolver' parameter.
Matthew