From: Kevin Ryde <user42@zip.com.au>
Subject: export in syntax-rules
Date: Mon, 27 Jan 2003 09:12:44 +1000 [thread overview]
Message-ID: <87vg0bec9f.fsf@zip.com.au> (raw)
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
next reply other threads:[~2003-01-26 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-26 23:12 Kevin Ryde [this message]
2003-01-27 11:23 ` export in syntax-rules Mikael Djurfeldt
2003-02-01 0:49 ` Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vg0bec9f.fsf@zip.com.au \
--to=user42@zip.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).