Barry Margolin <firstname.lastname@example.org> wrote:
| Gregory Novak <email@example.com> wrote:
| > (defun higher-level-function (&rest rest &key two &allow-other-keys)
| > (apply #'lower-level-function rest &allow-other-keys t)
| That should be :ALLOW-OTHER-KEYS T, and yes, this is the expected way
| to do it.
Having made this very mistake myself, I feel reasonably entitled ;-}
to add that the REST arg [a list] must go last in the call to APPLY:
(defun higher-level-function (&rest rest &key two &allow-other-keys)
...[do something with TWO]...
(apply #'lower-level-function :allow-other-keys t rest))
Rob Warnock <firstname.lastname@example.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607