Subject: Re: Parameter List Style Question
From: (Rob Warnock)
Date: Sat, 22 Apr 2006 20:43:18 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
Barry Margolin  <> wrote:
|  Gregory Novak <> 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			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607