home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / lisp / 2116 < prev    next >
Encoding:
Text File  |  1992-07-27  |  993 b   |  27 lines

  1. Newsgroups: comp.lang.lisp
  2. Path: sparky!uunet!think.com!linus!linus.mitre.org!starbase!duff
  3. From: duff@starbase.mitre.org (David A. Duff)
  4. Subject: Re: Want macro to produce 3 function calls
  5. Message-ID: <duff.712254841@starbase>
  6. Sender: news@linus.mitre.org (News Service)
  7. Nntp-Posting-Host: starbase.mitre.org
  8. Organization: The MITRE Corporation
  9. References: <Bs1zz1.E89@news.cso.uiuc.edu>
  10. Date: Mon, 27 Jul 1992 16:34:01 GMT
  11. Lines: 14
  12.  
  13. In <Bs1zz1.E89@news.cso.uiuc.edu> jmrg9881@uxa.cso.uiuc.edu (Jon Reid) writes:
  14.  
  15. >OK, this LISP beginner needs more help.  Here's what I'm trying to do:
  16.  
  17. >There are 3 functions I call whose parameters are closely related.  I'm
  18. >trying to write a single macro to produce the 3 function calls.
  19.  
  20. >How can I do this?  Every macro I've seen evaluates to *one* list.
  21.  
  22. (defmacro foo (x y z)
  23.   `(progn (fun-1 ,x)(fun-2 ,y)(fun-3 ,z)))
  24.  
  25. dave duff               mitre corporation           703-883-7731
  26. duff@mitre.org         ai technical center        mclean, va usa
  27.