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: Wed, 31 Mar 2004 07:47:56 +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> Reply-To: ttn@glug.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1080711604 29492 80.91.224.253 (31 Mar 2004 05:40:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2004 05:40:04 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 31 07:39:55 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 1B8YSA-0000vG-00 for ; Wed, 31 Mar 2004 07:39:54 +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 1B8YN1-0007kT-Eg for guile-user@m.gmane.org; Wed, 31 Mar 2004 00:34:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8YMp-0007hG-QI for guile-user@gnu.org; Wed, 31 Mar 2004 00:34:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8YMJ-0007De-K8 for guile-user@gnu.org; Wed, 31 Mar 2004 00:34:22 -0500 Original-Received: from [151.38.171.104] (helo=surf.glug.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8YMJ-0007DU-5I for guile-user@gnu.org; Wed, 31 Mar 2004 00:33:51 -0500 Original-Received: from ttn by surf.glug.org with local (Exim 3.35 #1 (Debian)) id 1B8YZw-00074S-00; Wed, 31 Mar 2004 07:47:56 +0200 Original-To: Viktor Pavlenko In-reply-to: <20040330172736.KQOK396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost> (message from Viktor Pavlenko on 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:3032 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3032 From: Viktor Pavlenko Date: Tue, 30 Mar 2004 12:27:36 -0500 not too inclined to use "black magic" in my code... there is a work in progress module (ice-9 gumm), snapshot at: http://www.glug.org/snap/core-1-4/ice-9/gumm.scm that provides an interface to the module system internals. you can construct a trivial facsimile for your local guile like so: (define-module (ice-9 gumm)) (define-public local-remove local-remove) (define-public current-module current-module) (define-public eval-in-module eval-in-module) (define-public module-ref module-ref) (define-public resolve-module resolve-module) [...] then your code can do (use-modules (ice-9 gumm)), which may give you a feeling of not using magic so much. certainly it will make your code interoperable w/ 1.4.2. (guile-sdl and guile-pg will do this, e.g.) in any case, i take your main point to be that load failures should not result in inconsistent state in the first place; particular approaches to working around this bug are of secondary concern only. probably 1.4.1.99 will have a fix -- thanks for reminding me of this. thi _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user