[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dynamic module creation
From: |
Neil Jerram |
Subject: |
Re: dynamic module creation |
Date: |
Sun, 01 Feb 2009 19:29:22 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Andy Wingo <address@hidden> writes:
> On Sun 01 Feb 2009 08:58, Julian Graham <address@hidden> 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