Subject: Re: Parameter List Style Question
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 22 Apr 2006 20:43:18 -0500
Newsgroups: comp.lang.lisp
Message-ID: <7dGdnc0aJK4rRtfZnZ2dneKdnZydnZ2d@speakeasy.net>
Barry Margolin  <barmar@alum.mit.edu> wrote:
+---------------
|  Gregory Novak <novak@ucolick.org> 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

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607