home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!udel!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!uwm.edu!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!scsing.switch.ch!sicsun!disuns2!disuns2.epfl.ch!simon
- From: simon@lia.di.epfl.ch (Simon Leinen)
- Newsgroups: comp.lang.lisp
- Subject: Re: Need help with macro writing
- Message-ID: <SIMON.93Jan27104642@liasg2.epfl.ch>
- Date: 27 Jan 93 09:46:42 GMT
- References: <1993Jan26.215013.12107@news.unige.ch>
- Sender: news@disuns2.epfl.ch
- Organization: Ecole Polytechnique Federale de Lausanne
- Lines: 17
- Nntp-Posting-Host: liasg2.epfl.ch
- In-reply-to: schneide@divsun.unige.ch's message of 26 Jan 93 21:50:13 GMT
- X-Md4-Signature: ba52b657dc891fbbc6bac791e8bd3d93
-
- In article <1993Jan26.215013.12107@news.unige.ch>
- schneide@divsun.unige.ch (SCHNEIDER daniel) writes:
-
- I am a bit stuck with macro writing. I'd like to translate this:
-
- (with-output-as-presentation1 (:stream t :type tt :object ttt) (print object) (bla bla))
-
- into this:
-
- (WITH-OUTPUT-AS-PRESENTATION (T TT TTT) (PRINT OBJECT) (BLA BLA))
-
- You can use &KEY arguments in sublists of the argument lists for macros:
-
- (defmacro with-output-as-presentation1 ((&key stream type object) &body body)
- `(with-output-as-presentation (,stream ,type ,object) ,@body))
- --
- Simon.
-