home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / lisp / mcl / 1836 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  818 b 

  1. Path: sparky!uunet!stanford.edu!apple!cambridge.apple.com!mt@media.mit.edu
  2. From: mt@media.mit.edu (Michael Travers)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: non quoted arguements
  5. Message-ID: <9212141809.AA13634@mahler.media.mit.edu>
  6. Date: 14 Dec 92 18:09:31 GMT
  7. References: Your message of "14 Dec 92 10:24:08 EST."
  8.              <01GSAWG9D45U001D1T@ENH.NIST.GOV>
  9. Sender: info-mcl-request@cambridge.apple.com
  10. Lines: 12
  11. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  12.  
  13.  
  14.     From: bright@ENH.NIST.GOV
  15.     Subject: non quoted arguements
  16.     
  17.     How does one write a function/macro/anything to return the input, like the
  18.     old nlambdas and fexpers used to do?    
  19.  
  20. If I understand you correctly, you have to use a macro.  Here's one:
  21.  
  22. (defmacro track-it (sym)
  23.   `(progn (push ',sym *all-new-names*)
  24.           ,sym))
  25.