From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: modules Date: Sun, 21 Mar 2004 22:29:39 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <877jxeahbn.fsf@buug.org> Reply-To: ttn@glug.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079903847 7522 80.91.224.253 (21 Mar 2004 21:17:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Mar 2004 21:17:27 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Mar 21 22:17:21 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 1B5AJs-00013J-00 for ; Sun, 21 Mar 2004 22:17:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5AJj-0005d2-7c for guile-user@m.gmane.org; Sun, 21 Mar 2004 16:17:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B5AJW-0005Yu-Bz for guile-user@gnu.org; Sun, 21 Mar 2004 16:16:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B5AIt-0005Ik-9G for guile-user@gnu.org; Sun, 21 Mar 2004 16:16:50 -0500 Original-Received: from [151.42.71.188] (helo=surf.glug.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5AIs-0005IU-L2 for guile-user@gnu.org; Sun, 21 Mar 2004 16:16:18 -0500 Original-Received: from ttn by surf.glug.org with local (Exim 3.35 #1 (Debian)) id 1B5AVn-0007XF-00; Sun, 21 Mar 2004 22:29:39 +0100 Original-To: Ian Zimmerman In-reply-to: <877jxeahbn.fsf@buug.org> (message from Ian Zimmerman on 20 Mar 2004 21:40:28 -0800) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 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:2963 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2963 From: Ian Zimmerman Date: 20 Mar 2004 21:40:28 -0800 How can I customize a module during loading? for the present, you have to fake it w/ `load' and closures. for the future, you can propose a design for a (sub-)clause for `use-modules' or `define-module' that supports parameterized modules, and then work w/ the module system that implements your design (after some likely-to-be-lengthly period of debugging ;-). how can I get an actual module object? use `resolve-module'. for example: (eval-in-module '(current-module) (resolve-module '(ice-9 rw))) => # i have discovered there are actually three kinds of "actual module object" in the context of guile -- one kind you can see in the above example (the "directory"), the other two normally more transient but nonetheless exposed/exposable. the word "module" is the chicken of programming terms -- everything tastes like it... thi _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user