From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.user Subject: export in syntax-rules Date: Mon, 27 Jan 2003 09:12:44 +1000 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <87vg0bec9f.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043623124 20338 80.91.224.249 (26 Jan 2003 23:18:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2003 23:18:44 +0000 (UTC) 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 18cw30-0005FY-00 for ; Mon, 27 Jan 2003 00:18:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18cw3Z-0005tq-08 for guile-user@m.gmane.org; Sun, 26 Jan 2003 18:19:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18cw2U-0005ko-00 for guile-user@gnu.org; Sun, 26 Jan 2003 18:18:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18cvyZ-0005Fy-00 for guile-user@gnu.org; Sun, 26 Jan 2003 18:14:24 -0500 Original-Received: from sunny.pacific.net.au ([203.25.148.40]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18cvy0-00055a-00 for guile-user@gnu.org; Sun, 26 Jan 2003 18:13:32 -0500 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h0QND5KR011421 for ; Mon, 27 Jan 2003 10:13:05 +1100 (EST) Original-Received: from localhost (ppp76.dyn228.pacific.net.au [203.143.228.76]) by wisma.pacific.net.au with ESMTP id KAA25098 for ; Mon, 27 Jan 2003 10:13:04 +1100 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 18cvxF-0000aO-00; Mon, 27 Jan 2003 09:12:45 +1000 Original-To: guile-user@gnu.org User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1577 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1577 In guile 1.6.1 on a recent i386 debian, I thought to use "export" inside a syntax-rules in a module definition, for instance (define-module (abc def) #:use-module (ice-9 syncase)) (define-syntax foo (syntax-rules () ((foo name) (export name)))) (define x 123) (foo x) But I got an error, ERROR: In procedure variable-ref: ERROR: Wrong type argument in position 1 (expecting variable): #f Is this sort of thing meant to work, or have I made some basic error? (I was looking to make "-public" versions of some macros. I got the effect I wanted with a procedure->macro, but just wondered if the syntax-rules style was valid.) _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user