From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Todd Newsgroups: gmane.lisp.guile.user Subject: Re: First look at Guile Std Library available Date: Sat, 3 Jan 2004 20:02:18 -0600 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20040104020218.GB677@Richard-Todds-Computer.local> References: <20040102052128.GA16849@Richard-Todds-Computer.local> <200401031320.00884.clinton@unknownlamer.org> Reply-To: Richard Todd NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0514523763==" X-Trace: sea.gmane.org 1073182326 11507 80.91.224.253 (4 Jan 2004 02:12:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2004 02:12:06 +0000 (UTC) Cc: guile-user@gnu.org, ttn@glug.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jan 04 03:12:02 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 1AcxkI-0005vu-00 for ; Sun, 04 Jan 2004 03:12:02 +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 1AcydC-00055k-32 for guile-user@m.gmane.org; Sat, 03 Jan 2004 22:08:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Acybp-00053K-4S for guile-user@gnu.org; Sat, 03 Jan 2004 22:07:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AcybI-0004ss-3g for guile-user@gnu.org; Sat, 03 Jan 2004 22:07:19 -0500 Original-Received: from [66.171.158.242] (helo=Richard-Todds-Computer.local) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcyYN-0004KF-OM for guile-user@gnu.org; Sat, 03 Jan 2004 22:03:47 -0500 Original-Received: by Richard-Todds-Computer.local (Postfix, from userid 501) id 5A50C71B0B; Sat, 3 Jan 2004 20:02:19 -0600 (CST) Original-To: Clinton Ebadi In-Reply-To: <200401031320.00884.clinton@unknownlamer.org> User-Agent: Mutt/1.4i 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:2512 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2512 --===============0514523763== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 03, 2004 at 01:19:49PM -0500, Clinton Ebadi wrote: > Grep the slib sources for all instances of "provide" and then generate a = new=20 > file "std/slib/symbol-that-is-provided.scm" that does a (use-modules (ice= -9=20 > slib)), does a (require 'symbol-that-is-provided) and then exports all th= e=20 > symbols in the current model to the outside world=20 If I'm understanding you, this would be an slib wrapper such that guile use= rs would say: (use-modules (slib factor)) and that file would look like: ---- (define-module (slib factor) #:uses-module (ice-9 slib)) (require 'factor) ;; and then export whatever slib factor uses for a public interface? ---- > (set-module-uses! %module-public-interface > (list (nested-ref the-root-module '(app modules std sli= b=20 > symbol-that-is-provided)))) I'm not familiar with the set-module-uses! interface, so I'm not sure what you are getting at there. The guile info pages seem to be silent on them as well. Any hints? This would certainly make slib more seamless for guile users. I like that it should allow people to use the guile renaming mechanism to manage naming conflicts, whereas I don't think SLIB's require mechanism accounts for that sort of thing. For my tastes I'd still prefer (math primes) rather than (slib factor), so that it fits into a larger, cohesive library. I was also hoping to not absorb parts of slib that overlap what guile already provides, and that means changing the slib sources. Maybe that's the wrong answer, and I should just accept the duplication. Richard Todd richardt at vzavenue dot net --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQE/93Qqa9lhNGIqsRIRAko7AJwOPlSaByCupmfQ3yyXiJIYJ2tmpACePLnP gB27YKSZPxoVUWktyycxeOc= =V7Ks -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX-- --===============0514523763== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user --===============0514523763==--