unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: Julian Graham <joolean@gmail.com>
Cc: Andy Wingo <wingo@pobox.com>, guile-user <guile-user@gnu.org>
Subject: Re: dynamic module creation
Date: Sun, 01 Feb 2009 19:29:22 +0000	[thread overview]
Message-ID: <8763juklbh.fsf@arudy.ossau.uklinux.net> (raw)
In-Reply-To: <m3pri2fjmn.fsf@pobox.com> (Andy Wingo's message of "Sun\, 01 Feb 2009 13\:04\:48 +0100")

Andy Wingo <wingo@pobox.com> writes:

> On Sun 01 Feb 2009 08:58, Julian Graham <joolean@gmail.com> 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




  reply	other threads:[~2009-02-01 19:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-01  7:58 dynamic module creation Julian Graham
2009-02-01 12:04 ` Andy Wingo
2009-02-01 19:29   ` Neil Jerram [this message]
2009-02-02  9:49   ` Ludovic Courtès
     [not found]   ` <2bc5f8210902011259w54b5e427x1de20fb88143d441@mail.gmail.com>
2009-02-04  0:30     ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763juklbh.fsf@arudy.ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-user@gnu.org \
    --cc=joolean@gmail.com \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).