[pro] Keyword arguments and compiler macros

Nikodemus Siivola nikodemus at random-state.net
Sat Dec 3 10:39:04 UTC 2011


On 3 December 2011 12:26, Nikodemus Siivola <nikodemus at random-state.net> wrote:

> Also, I just found a hilarious --apparently universal-- bug in this area:

>  (define-compiler-macro foo (&key ((a ax) t)) (format nil "a=~S" ax))

Just ignore me. I need more coffee.

The universal behaviour is correct: a compiler-macro lambda-list is a
/macro/ lambda list, after all.

Interestingly enough, that also means that there is no ways to use
&KEY to specify non-keyword keyword arguments in a compiler-macro
lambda-list that doesn't run roughshod across the evaluation model.

Cheers,

 -- Nikodemus




More information about the pro mailing list