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-using a module Date: Tue, 30 Mar 2004 10:34:28 -0500 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20040330153428.JACI396979.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 1080661411 19444 80.91.224.253 (30 Mar 2004 15:43:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2004 15:43:31 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Mar 30 17:43:16 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 1B8LOV-00005F-00 for ; Tue, 30 Mar 2004 17:43:15 +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 1B8LGu-0007E1-62 for guile-user@m.gmane.org; Tue, 30 Mar 2004 10:35:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8LGa-0007D6-PF for guile-user@gnu.org; Tue, 30 Mar 2004 10:35:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8LG3-00078R-VN for guile-user@gnu.org; Tue, 30 Mar 2004 10:35:03 -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 1B8LG3-00077w-Gt for guile-user@gnu.org; Tue, 30 Mar 2004 10:34:31 -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 <20040330153428.JACI396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost>; Tue, 30 Mar 2004 10:34:28 -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 10:34:28 -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:3021 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3021 Hi all, is there a way to reload a module in guile? Example: file aaa.scm: --------------------------------------------->8 (define-module (aaa) #:export (a b)) (define a 3) (define b (lambda (x) (* x 2)) ;;missing `)' ---------------------------------------------8< guile> (use-modules (aaa)) ERROR: In procedure list: ERROR: end of file in ./aaa.scm ABORT: (misc-error) guile> (use-modules (aaa)) guile> The second use-modules statement does nothing. (The behavior is exactly the same in the C interface. My program loads user-defined modules, and if there happens to be a syntax error in such a module I have to terminate the program. What I would like to do is tell the user about the error, let her fix it and reload the module). Thanks in advance. Viktor _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user