unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Clinton Ebadi <clinton@unknownlamer.org>
Subject: Re: Interpreter Sessions (Newbie)
Date: Mon, 24 Feb 2003 16:50:24 -0500	[thread overview]
Message-ID: <200302241650.24519.clinton@unknownlamer.org> (raw)
In-Reply-To: <m34r6t1vle.fsf@multivac.cwru.edu>

On Monday 24 February 2003 11:39, Paul Jarc wrote:
> Clinton Ebadi <clinton@unknownlamer.org> wrote:
> > ;;; (make-module size uses-list)
> > (define userid-module (make-module 1021 (list (resolve-module
> > '(guile-user)))))
>
> Hm... I've been using resolve-interface here, not resolve-module.
> Does it make a difference?

They do different things:

;; `resolve-interface' takes two keyword arguments:
;;
;;   #:select SELECTION
;;
;; SELECTION is a list of binding-specs to be imported; A binding-spec
;; is either a symbol or a pair of symbols (ORIG . SEEN), where ORIG
;; is the name in the used module and SEEN is the name in the using
;; module.  Note that SEEN is also passed through RENAMER, below.  The
;; default is to select all bindings.  If you specify no selection but
;; a renamer, only the bindings that already exist in the used module
;; are made available in the interface.  Bindings that are added later
;; are not picked up.
;;
;;   #:renamer RENAMER
;;
;; RENAMER is a procedure that takes a symbol and returns its new
;; name.  The default is to not perform any renaming.
;;
;; Signal "no code for module" error if module name is not resolvable
;; or its public interface is not available.  Signal "no binding"
;; error if selected binding does not exist in the used module.

resolve-module is used by resolve-interface to find the module and then load 
it.

-- 
http://unknownlamer.org


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2003-02-24 21:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-22 17:03 Interpreter Sessions (Newbie) Pedro Ortega
2003-02-22 17:53 ` Clinton Ebadi
2003-02-24 16:39   ` Paul Jarc
2003-02-24 21:50     ` Clinton Ebadi [this message]
2003-02-28 17:56       ` Paul Jarc
2003-02-28 19:54         ` Clinton Ebadi
2003-02-22 22:26 ` dskr

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=200302241650.24519.clinton@unknownlamer.org \
    --to=clinton@unknownlamer.org \
    /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).