From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Viktor Pavlenko Newsgroups: gmane.lisp.guile.user Subject: Re: re-using a module Date: Tue, 30 Mar 2004 12:27:36 -0500 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20040330172736.KQOK396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1080667810 5976 80.91.224.253 (30 Mar 2004 17:30:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2004 17:30:10 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Mar 30 19:30: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 1B8N3p-0001MO-00 for ; Tue, 30 Mar 2004 19:30:02 +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 1B8N2A-0007KJ-Px for guile-user@m.gmane.org; Tue, 30 Mar 2004 12:28:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8N22-0007Jz-8H for guile-user@gnu.org; Tue, 30 Mar 2004 12:28:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8N1W-0007Gv-Db for guile-user@gnu.org; Tue, 30 Mar 2004 12:28:09 -0500 Original-Received: from [66.185.86.73] (helo=fep03-mail.bloor.is.net.cable.rogers.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8N1V-0007Gp-GM for guile-user@gnu.org; Tue, 30 Mar 2004 12:27:37 -0500 Original-Received: from localhost ([127.0.0.1]) by fep03-mail.bloor.is.net.cable.rogers.com (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with ESMTP id <20040330172736.KQOK396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost>; Tue, 30 Mar 2004 12:27:36 -0500 X-Mailer: Openwave WebEngine, version 2.8.10 (webedge20-101-191-20030113) Original-To: X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep03-mail.bloor.is.net.cable.rogers.com from [127.0.0.1] using ID at Tue, 30 Mar 2004 12:27:36 -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:3024 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3024 > From: David Pirotte > Date: 2004/03/30 Tue AM 11:13:11 EST > > On Tue, 30 Mar 2004 10:50:45 -0500 > prj@po.cwru.edu (Paul Jarc) wrote: > > > Viktor Pavlenko wrote: > > > is there a way to reload a module in guile? > > > > Untested black magic: > > (use-modules (aaa)) > > (local-remove '(app modules aaa)) > > (use-modules (aaa)) > Thanks, that's great. OTOH why isn't it done by default? Shouldn't guile do a cleanup if it fails to load a module? Besides I'm not too inclined to use "black magic" in my code... > once a module has been used, unless you define new > symbols/functions/methods ... you can simply load the file > > (load "xxx.scm") > This (although painful) works great too. Incidentally, I looked for a C equivalent, and found only scm_primitive_load. Scheme primitive-load differs from load in that it disregards the module's export list (makes all module's symbols visible :-( Thanks for your help. Viktor _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user