Andy Wingo <[email protected]> writes:
> On Sun 01 Feb 2009 08:58, Julian Graham <[email protected]> writes:
>
>> Is there some way to get the module-creation
>> behavior of `resolve-module' but also be able to include stuff from
>> other modules in the resulting environment?
>
> guile> (resolve-module '(foo))
> $1 = #<directory (foo) b7f11bb0>
> guile> (beautify-user-module! $1)
> $2 = (#<interface (guile) b7f8aef0>)
> guile> (module-ref $1 'sin)
> $3 = #<procedure sin (z)>
> guile>
And for an example of this, see `use-elisp-file' in
lang/elisp/interface.scm.
Neil