guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic module creation


From: Ludovic Courtès
Subject: Re: dynamic module creation
Date: Mon, 02 Feb 2009 10:49:14 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hi,

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>

You could also use:

  (let ((m (make-module)))
    (set-module-name! m '(foo))
    m)

but you still need this ugly part:

> guile> (beautify-user-module! $1)
> $2 = (#<interface (guile) b7f8aef0>)

Thanks,
Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]