From: Tim Bradshaw
Subject: Re: declarations in defmacro
Date: 
Message-ID: <ey3snwrulk3.fsf@cley.com>
* kp gores wrote:

> (defmacro number-ppml (structured-text pattern pe-nr)
>    (declare (optimize speed)
>                 (type structuredtext structured-text)
>                 (type pattern pattern)
>                 (type fixnum pe-nr))
>    `(...)
> ...)

These declaration will apply to the body of the macro itself, whereas
my guess is you want declarations which apply to the code which is the
expansion of the macro.  To do that, you need to make sure that the
macro expands to a form which can have declarations in it.  If The
expansion is not naturally of such a form, you can wrap LOCALLY around
it:

--tim