Pascal J. Bourguignon <pjb@informatimago.com> wrote:
+---------------
| Andy Chambers <achambers.home@googlemail.com> writes:
| > I'd like to write a macro
| > (defmacro with-!-syntax (&body body) ...)
| > that temporarily introduces the "!" macro character
|
| This is not possible.
| Any with-!-syntax form will have been READ long before it is MACROEXPANDED.
+---------------
Darn! I was just about to say that! You beat me to it!! ;-}
Though one thing he might do -- which doesn't actually involve
a readmacro at all -- is do a tree walk of the BODY and look for
symbols starting with "!" and rewrite *those*, something like the
thread we had a while back about extracting args like "$3" & "$*"
from a lambda body to build the arglist...
+---------------
| Have a look at: http://www.nhplace.com/kent/PS/Ambitious.html
+---------------
Good suggestion! That's definitely worth a read.
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607