[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
export in syntax-rules
From: |
Kevin Ryde |
Subject: |
export in syntax-rules |
Date: |
Mon, 27 Jan 2003 09:12:44 +1000 |
User-agent: |
Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-pc-linux-gnu) |
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.)
- export in syntax-rules,
Kevin Ryde <=