Returning &whole argument in compiler macros.
Hi all,I've just run up against some weird behaviour with compiler macros in LWL 4.4.6
Compiling the following code gives the error,
LAMBDA-LIST form is not a proper list: #<Quote NIL >.
(defmacro test-macro (ll &body body)
`(lambda ,ll ,@body))
(define-compiler-macro test-macro (&whole form ll &body body)
(declare (ignore ll body))
form)
(defun test-nil ()
(test-macro () (+ 1 1)))
This only seems to occur with compiler-macro's defined on macros,
defining them on functions still works fine.
Does anyone have any ideas?
Thanks,
Sean.