2005/11/2, Raymond Toy <[EMAIL PROTECTED]>:
> >>>>> "Kris" == Kris Steegmans <[EMAIL PROTECTED]> writes:
>
>
>     Kris> On the other hand, I even question is why the compiler should give a
>     Kris> note about that. I think it is perfectly legal common lisp to have a
>     Kris> keyword that is not a constant:
>     Kris> (defun g (&key a b c)
>     Kris>     ...)
>     Kris> (defun f (keyword value)
>     Kris>     (g keyword value))
>
> The compiler also warns here that keyword is not a constant.
>
>     Kris> Another option would be to rewrite the push macro to check for
>     Kris> constants and don't declare variables for them in the let* 
> expression.
>     Kris> With some macro hacking this should be possible.
>
> Yes, that might be possible.
>
> An alternative would be to use the ext:inhibit-warnings optimization
> declaration to turn off the note.
That is indeed a good workaround. Thanks for the suggestion.
>
> Ray
>
>


Reply via email to