[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
&WHOLE with other args...
- To: JONL at MIT-MC
- Subject: &WHOLE with other args...
- From: Kent M. Pitman <KMP at MIT-MC>
- Date: Mon, 3 Nov 80 11:01:00 GMT
- Cc: BUG-LISP at MIT-MC
- Original-date: 3 November 1980 06:01-EST
Date: 28 October 1980 09:32-EDT
From: Jon L White <JONL at MIT-MC>
Apparently the &REST interferes with the &WHOLE in
(DEFMACRO FOO (&WHOLE FORM &REST W) ...)
but other cases work.
I should hope you don't make this work! Asking for it to work is like asking
(DEFUN FOO (&REST BAR &OPTIONAL BAZ) (LIST BAR BAZ))
(FOO 3 4)
((3 4) 3)
... yuk! You should have to do
(DEFUN FOO (&WHOLE FORM) (LET ((W (CDR FORM))) ...))
in order to win. -kmp