[Top][All Lists]

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

Re: Interpreter Sessions (Newbie)

From: Clinton Ebadi
Subject: Re: Interpreter Sessions (Newbie)
Date: Mon, 24 Feb 2003 16:50:24 -0500
User-agent: KMail/1.4.2

On Monday 24 February 2003 11:39, Paul Jarc wrote:
> Clinton Ebadi <address@hidden> 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 


reply via email to

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