From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Issac Trotts Newsgroups: gmane.lisp.guile.user Subject: Re: re-using a module Date: Tue, 30 Mar 2004 03:37:32 -0800 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20040330113732.GA23373@mev> References: <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=us-ascii X-Trace: sea.gmane.org 1080671315 16136 80.91.224.253 (30 Mar 2004 18:28:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2004 18:28:35 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Mar 30 20:28:26 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 1B8NyL-0006CE-00 for ; Tue, 30 Mar 2004 20:28:25 +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 1B8Nvz-0001mX-0x for guile-user@m.gmane.org; Tue, 30 Mar 2004 13:25:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8Nv5-0001Hl-JQ for guile-user@gnu.org; Tue, 30 Mar 2004 13:25:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8NuE-0000MO-4I for guile-user@gnu.org; Tue, 30 Mar 2004 13:24:42 -0500 Original-Received: from [208.184.191.145] (helo=host1.stonesfair.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B8NuD-0000K8-8P for guile-user@gnu.org; Tue, 30 Mar 2004 13:24:09 -0500 Original-Received: from mev (63-217-154-71.greystoneapts.com [63.217.154.71]) by host1.stonesfair.com (8.12.8/8.12.8) with ESMTP id i2UI8RdP007433; Tue, 30 Mar 2004 10:08:27 -0800 Original-Received: from ijtrotts by mev with local (Exim 3.35 #1 (Debian)) id 1B8HYi-00068y-00; Tue, 30 Mar 2004 03:37:32 -0800 Original-To: Viktor Pavlenko Content-Disposition: inline In-Reply-To: <20040330172736.KQOK396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost> User-Agent: Mutt/1.3.28i 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:3027 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3027 On Tue, Mar 30, 2004 at 12:27:36PM -0500, Viktor Pavlenko wrote: > > 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 :-( Why not use gh_eval_str("(load \"xxx.scm\"")") ? ijt _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user