[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
&body
- To: (BUG LISP) at MIT-MC
- Subject: &body
- From: ALAN at MIT-MC (Alan Bawden)
- Date: Wed, 31 Dec 80 02:51:00 GMT
- Cc: ALAN at MIT-MC
- Original-date: 30 DEC 1980 2151-EST
The LispMachine version of defmacro now supports an additional &
keyword: &body. It has exactly the same effect as &rest as far as the
defined macro is concerned. The difference is that in addition to
defining the macro it outputs a form to tell Zwei how to indent
instances of the macro. So that
(defmacro frobify (var form frob &body body)
...)
Tells Zwei to indent like:
(frobify x (+ 3 z)
*frob*
(print x)
(print y))
The idea is that body is declared to be a body (list of forms) and not
just any old random list structure.
Now it would be a little hard to have this work on ITS, but it would
be nice if the ITS defmacro would at least accept the keyword &body in
place of &rest. Can this be done please? Thank you.