Subject: Re: Loops in macro definition
From: (Rob Warnock)
Date: 15 May 2001 09:48:26 GMT
Newsgroups: comp.lang.scheme
Message-ID: <9dqu1a$8ds36$>
<> wrote:
| On the other hand, it is wise to put in an "escape hatch" into
| your HDL, i.e. a construct like (scheme ...) and then ...
| is a pure Scheme program which is called with eval.
| If you still don't like this approach, I would recommend
| implementing this kind of thing not on top of hygienic macro's,
| but on top of a CL defmacro-like system. defmacro-style macro's
| are more difficult to get right, but also more powerful.

And for the ultimate in convenience, you can do something like
what "scsh" does with its process macros, and make the HDL be
implicitly quasiquoted. That is, the "escape hatch" becomes simply
"unquote" or "unquote-splicing", e.g.,

    (net sig-name
	 ,@(map translate-daughter-pins d-pin-list-73)


Rob Warnock, 31-2-510
SGI Network Engineering		<URL:>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA