From: Barry Margolin
Subject: Re: `defsubst' in CL
Date: 
Message-ID: <5sb05n$psk@tools.bbnplanet.com>
In article <·············@867092545.eagle>,
SDS  <···········@cctrading.com> wrote:
>Isn't there something wrong with using progn here?
>I wanted defsubst to expand to 
>
>(declaim (inline name))
>(defsubst name ...)
>
>Apparently, you believe that the progn version is OK.

No, there's nothing wrong with using PROGN here.  That's precisely the way
to make a macro expand into multiple forms -- expand into a PROGN
containing those forms.

P.90 of CLtL2, where it describes how top-level forms in the compiler are
processed, says, "If the form is a PROGN (or LOCALLY) form, each of its
body forms is sequentially processed as top-level forms...."  This is kind
of hard to find, as it's embedded in the description of EVAL-WHEN; I think
the ANSI standard has it in a more findable location.

-- 
Barry Margolin, ······@bbnplanet.com
BBN Corporation, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.