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: re-using a module Date: Thu, 01 Apr 2004 07:12:25 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <20040330172736.KQOK396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost> <16491.27127.884552.112594@hetman.ua> Reply-To: ttn@glug.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1080795666 6546 80.91.224.253 (1 Apr 2004 05:01:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2004 05:01:06 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Apr 01 07:00:58 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 1B8uK1-0002ha-00 for ; Thu, 01 Apr 2004 07:00:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8uJe-0006T8-3S for guile-user@m.gmane.org; Thu, 01 Apr 2004 00:00:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8uIE-0005Gm-73 for guile-user@gnu.org; Wed, 31 Mar 2004 23:59:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8uHR-0004Ha-DS for guile-user@gnu.org; Wed, 31 Mar 2004 23:58:50 -0500 Original-Received: from [151.38.171.104] (helo=surf.glug.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8uHQ-0004G9-F3 for guile-user@gnu.org; Wed, 31 Mar 2004 23:58:16 -0500 Original-Received: from ttn by surf.glug.org with local (Exim 3.35 #1 (Debian)) id 1B8uV7-0002BP-00; Thu, 01 Apr 2004 07:12:25 +0200 Original-To: Viktor Pavlenko In-reply-to: <16491.27127.884552.112594@hetman.ua> (message from Viktor Pavlenko on Wed, 31 Mar 2004 20:01:43 -0500) 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:3034 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3034 From: Viktor Pavlenko Date: Wed, 31 Mar 2004 20:01:43 -0500 There is more to it. local-remove works only if the module haven't been loaded. It's not possible to un-load a successfully loaded module with it: [...] probably it is better to speak of "unlinking" a module from the current module which implies breaking a single edge, rather than "unloading" which implies de-allocation of resources and a (potentially) cascading process of breaking many edges. how does this syntax strike you: (unlink-modules MODULE-NAME [...]) ; or maybe "unuse-modules" ? perhaps this should only be available via (ice-9 session), aimed at interactive repls primarily. It would be cool if there was a way to reload modules too. eventually the module system must support complete phase separation between reading and evaluation. by reload, do you mean re-read, re-eval or both? could you give an example of how reloading would be used? i just finished the "How to Use Modules in PLT Scheme v200" webpage; it looks like the guile module system has a lot of enhancement opportunity left... thi _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user