From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: module trickery Date: 31 Aug 2002 17:01:30 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87wuq7kr79.fsf@zagadka.ping.de> References: <87elcibm29.fsf@becket.becket.net> <87y9apqtyt.fsf@zagadka.ping.de> <87ptw0ymph.fsf@becket.becket.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030806043 15302 127.0.0.1 (31 Aug 2002 15:00:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 31 Aug 2002 15:00:43 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17l9jt-0003yh-00 for ; Sat, 31 Aug 2002 17:00:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17l9lK-0004lw-00; Sat, 31 Aug 2002 11:02:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17l9kg-0004lY-00 for guile-devel@gnu.org; Sat, 31 Aug 2002 11:01:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17l9ke-0004lM-00 for guile-devel@gnu.org; Sat, 31 Aug 2002 11:01:30 -0400 Original-Received: from dialin.speedway42.dip118.dokom.de ([195.138.42.118] helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.10) id 17l9ke-0004lI-00 for guile-devel@gnu.org; Sat, 31 Aug 2002 11:01:28 -0400 Original-Received: (qmail 29381 invoked by uid 1000); 31 Aug 2002 15:01:30 -0000 Original-To: tb@becket.net (Thomas Bushnell, BSG) In-Reply-To: <87ptw0ymph.fsf@becket.becket.net> Original-Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1215 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1215 tb@becket.net (Thomas Bushnell, BSG) writes: > I'm quite flexible here... anything that lets me set up the relevant > module and do eval-in-module will be fine by me. Switching from > Guile 1.4 to the latest 1.5 test release is not unacceptible, if it > will really work. Here is something that works with 1.5.8 and CVS HEAD. I don't know whether it works with the 1.4 series, tho. Is it similar enough to what you are doing? (define-module (python syntax) :use-syntax (ice-9 syncase)) (define-syntax foo (syntax-rules () ((_ a) (display a)))) (define-module (test)) (define python-toplevel (make-module)) (beautify-user-module! python-toplevel) (module-use! python-toplevel (resolve-module '(python syntax))) (eval '(foo "hi\n") python-toplevel) Running it produces: $ guile -s x.scm hi Thus, it seems that no additional tricks are needed, which is a good thing. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel