Message from discussion
LISP - The Challenge of Nested Macros - [#V0.5]
Path: archiver1.google.com!postnews1.google.com!not-for-mail
From: cubicle...@mailandnews.com (Software Scavenger)
Newsgroups: comp.lang.lisp
Subject: Re: LISP - The Challenge of Nested Macros - [#V0.5]
Date: 14 Sep 2002 00:24:45 -0700
Organization: http://groups.google.com/
Lines: 15
Message-ID: <a6789134.0209132324.4403be5f@posting.google.com>
References: <3D72EAA1.1090100@pontos.net> <altgkt$l2l$1@usenet.otenet.gr>
NNTP-Posting-Host: 151.200.243.46
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1031988285 12382 127.0.0.1 (14 Sep 2002 07:24:45 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 14 Sep 2002 07:24:45 GMT
ilias <at_n...@pontos.net> wrote in message news:<altgkt$l2l$1@usenet.otenet.gr>...
> (defmacro abbrev (short long) ; [1]
> `(defmacro ,short (&rest args)
> `(,',long ,@args)))
Your fallacy is in thinking the quote is a form. But it's an
operator. The form affected by the first comma of ,',long is ',long
rather than just the ' alone.
The easiest way to read this, and to remember how it works, is to
treat ,', as an idiom or magic formula meaning the same thing as ,
except that it associates with the outer backquote instead of the
inner.