From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: First look at Guile Std Library available Date: Tue, 06 Jan 2004 16:20:02 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <20040102052128.GA16849@Richard-Todds-Computer.local> <200401031320.00884.clinton@unknownlamer.org> <20040104020218.GB677@Richard-Todds-Computer.local> <20040106204212.GB346@Richard-Todds-Computer.local> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1073424220 14721 80.91.224.253 (6 Jan 2004 21:23:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2004 21:23:40 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 06 22:23:37 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Adyfp-0006AH-00 for ; Tue, 06 Jan 2004 22:23:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdzcI-0003pD-Vc for guile-user@m.gmane.org; Tue, 06 Jan 2004 17:24:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AdzaY-0003My-HT for guile-user@gnu.org; Tue, 06 Jan 2004 17:22:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AdzZt-0002zp-Pg for guile-user@gnu.org; Tue, 06 Jan 2004 17:22:05 -0500 Original-Received: from [129.22.104.63] (helo=harris.CNS.CWRU.Edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdzZs-0002z2-Tq for guile-user@gnu.org; Tue, 06 Jan 2004 17:21:32 -0500 Original-Received: from conversion-daemon.smtp-a.cwru.edu by smtp-a.cwru.edu (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) id <0HR300G0176XA6@smtp-a.cwru.edu> for guile-user@gnu.org; Tue, 06 Jan 2004 16:20:03 -0500 (EST) Original-Received: from multivac.cwru.edu (multivac.ITS.CWRU.Edu [129.22.114.26]) by smtp-a.cwru.edu (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HR3009ES79FZK@smtp-a.cwru.edu> for guile-user@gnu.org; Tue, 06 Jan 2004 16:20:03 -0500 (EST) Original-Received: (qmail 30339 invoked by uid 500); Tue, 06 Jan 2004 21:20:25 +0000 In-reply-to: <20040106204212.GB346@Richard-Todds-Computer.local> Original-To: Richard Todd Mail-followup-to: Richard Todd , guile-user@gnu.org Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Original-Lines: 27 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2548 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2548 Richard Todd wrote: >>> (set-module-uses! %module-public-interface >>> (list (nested-ref the-root-module '(app modules std slib >>> symbol-that-is-provided)))) ... > I'm going to start investigating this in the guile code taday, but I > thought I'd ask again in case someone can just tell me: What does > that set-module-uses! expression quoted above mean? I assume this > is attempting to export the slib functions that were just > 'require'd, right? First, the nested-ref call resolves a name in the module hierarchy. For example: guile> (nested-ref the-root-module '(app modules srfi srfi-1)) # guile> (nested-ref the-root-module '(app modules srfi srfi-1 map)) # set-module-users! modifies %module-public-interface (i.e., the public interface of the current module, where names are searched for by code that uses this module) so that if something tries to look up a name in %module-public-interface and it isn't directly there, then the search will continue in the (list ...) given. But you might be better off with module-use! than set-module-uses!. See ice-9/boot-9.scm. paul _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user