Subject: Re: Tri Macro Programmer rating
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 12 Jul 2007 02:29:17 -0500
Newsgroups: comp.lang.lisp
Message-ID: <adOdnWy3tqDQRQjbnZ2dnUVZ_rignZ2d@speakeasy.net>
Matthias Buelow  <mkb@incubus.de> 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
appeared.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607