[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: do-nothing macro generates nil nevertheless
- To: email@example.com
- Subject: Re: do-nothing macro generates nil nevertheless
- From: firstname.lastname@example.org (Andrew Philpot)
- Date: Mon, 27 Feb 1995 21:15:46 GMT
- Organization: NASA/ARC Computational Sciences Division
- References: <email@example.com>, <firstname.lastname@example.org>, <Pine.A188.8.131.520227130326.26069Jemail@example.com>
- Sender: firstname.lastname@example.org
In article <Pine.A184.108.40.2060227130326.26069Jemail@example.com>,
William D. Gooch <firstname.lastname@example.org> wrote:
>On 27 Feb 1995, Dave Yost wrote:
>> My point is that some functionality is not provided:
>> namely, the ability of a macro to expand into _nothing_.
>Why not just use ,@(the-macro ...) ? Then if it returns nil, you get
>nothing. Of course, it must always return a list for this to work.
I thought of this approach as well. This has been my tactic in
similar situations in the past.
But I think in Dave Yost's case the invoking context is not
necessarily a backquote templating context, so ,@ might not be
possible. I believe the example had (PROGN ... (THE-MACRO)), not
`(PROGN ... ,(THE-MACRO)).
Recom Tech/NASA Ames