Subject: Re: syntax-rules macros with sub-macros
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 21 Nov 2000 01:40:10 GMT
Newsgroups: comp.lang.scheme
Message-ID: <8vcjpq$5dq7$1@fido.engr.sgi.com>
David Bakhash  <cadet@alum.mit.edu> wrote:
+---------------
| larsa@bifrost.sim.no (Lars J. Aas) writes:
| > Does anyone know of a better way to structure macros with sub-macros
| > so the internal sub-macros are hidden from the toplevel environment
| > and shared between the (<pattern> <template>) rules?
| 
| In Common Lisp, there's something called MACROLET, and it does a fine
| job of this exact thing, if I understand what you want correctly.  You 
| may consider finding an implementation of this in Scheme.
+---------------

Well, for what it's worth, "let-syntax" and "letrec-syntax" are part
of the R5RS standard, so any Scheme implementing R5RS *should* provide
them (along with "define-syntax"). See section "4.3.1 Binding constructs
for syntactic keywords"...


-Rob

-----
Rob Warnock, 31-2-510		rpw3@sgi.com
Network Engineering		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043