[ansi-test-devel] Local function binding shadows global macro

Erik Huelsmann ehuels at gmail.com
Mon Sep 26 12:57:54 UTC 2011


Hi Sam, Pascal,

Thanks for the suggestions. I've implemented tests, verified that these
issues were actually present in the older version of ABCL and that they are
currently fixed. Yesterday I've committed the tests to the ansi-test
repository.

Regards,

Erik.

On Fri, Aug 26, 2011 at 6:05 PM, Sam Steingold <sds at gnu.org> wrote:

> The following message is a courtesy copy of an article
> that has been posted to gmane.lisp.ansi-tests as well.
>
> Hi Eric,
>
> I think what you want is:
>
> (defmacro test-macro (argument) (error "Bad macro called(~S)" argument))
> (defun test-function ()
>  (flet ((test-macro (argument) (list 'good argument)))
>    (test-macro 1)))
> (test-function)
> ==> (GOOD 1)
> (macrolet ((test-macro (argument) `'(good ,argument)))
>  (test-macro 1))
> ==> (GOOD 1)
>

Thanks for the help! I verified that my fixes to ABCL fixed these tests and
committed the tests to the ANSI tests repository.

Bye,


Erik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ansi-test-devel/attachments/20110926/e4e56907/attachment.html>


More information about the ansi-test-devel mailing list