Matthias Buelow <email@example.com> wrote:
| I wrote:
| > The above macro could hypothetically be replaced by a function if...
| One additional note, if you use this variant, you don't have access to
| lexical variables in outer forms, which would complicate the whole
| thing. I can't see any practical way how this particular construct
| could be done without a macro.
Well, if instead of using (QUOTE form) to wrap argument forms you
used (LAMBDA () form), that would give you [selective] access in
the called function to lexical variables in the calling function.
That used to be done all the time in Scheme before R5RS macros
Rob Warnock <firstname.lastname@example.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607