home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!caen!hellgate.utah.edu!hellgate!moore
- From: moore@cs.utah.edu (Tim Moore)
- Subject: Re: Macro lambda lists: &key and &body
- Message-ID: <MOORE.92Aug27135541@defmacro.cs.utah.edu>
- In-reply-to: raman@cs.cornell.edu's message of Thu, 27 Aug 1992 19:20:17 GMT
- Organization: University of Utah CS Dept
- References: <1992Aug27.192017.18279@cs.cornell.edu>
- Date: 27 Aug 92 13:55:41
- Lines: 20
-
- In article <1992Aug27.192017.18279@cs.cornell.edu> raman@cs.cornell.edu (T. V. Raman) writes:
- Hi!
-
- I need to supply a keyword argument or at least an optional argument
- with a default value to a macro.
-
- Lisp does not permit
- (defmacro (&key (..) &body body)
-
- What is the correct way of writing this?
-
- (defmacro foo ((&key ...) &body body) ...)
-
- Thanks,
- --Raman
-
- --
- Tim Moore moore@cs.utah.edu {bellcore,hplabs}!utah-cs!moore
- "Wind in my hair - Shifting and drifting - Mechanical music - Adrenaline surge"
- - Rush
-