[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: &REST in DEFMACRO
- To: AS%hp-labs.csnet@csnet-relay.arpa
- Subject: Re: &REST in DEFMACRO
- From: Guy.Steele@CMU-CS-A.ARPA
- Date: Sat, 07 Jul 1984 05:52:00 -0000
- Cc: common-lisp@SU-AI.ARPA
- In-reply-to: <8407021704.AA00732@HP-VENUS>
Well, this is what I would call a "curprising consequence",
but yes, I would say that
(defmacro foo (&optional a b &rest (c d)) ...)
in effect makes a, b, c, and d all be required, else the parameters
c and d could never be satisfied. You can get the effect you seem
to want by writing
(defmacro foo (&optional a b &rest (&optional c d) ...) ...
--Guy