home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / lisp / mcl / 1834 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.1 KB  |  31 lines

  1. Path: sparky!uunet!stanford.edu!apple!cambridge.apple.com!bright@ENH.NIST.GOV
  2. From: bright@ENH.NIST.GOV
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: non quoted arguements
  5. Message-ID: <01GSAWG9D45U001D1T@ENH.NIST.GOV>
  6. Date: 14 Dec 92 15:24:08 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 20
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10.  
  11. Hi !  This seems dumb to the extreme, but I am stumped.
  12.  
  13. How does one write a function/macro/anything to return the input, like the
  14. old nlambdas and fexpers used to do?  The reason:  I'd like to track what I
  15. do without having to quote everything.  Say, track-it, which returns the
  16. value of foo, but pushes the symbol foo onto a list:
  17.  
  18. (setq bar '(a list with data))   (defparameter *all-new-names* '(some old
  19. names too))
  20. (track-it bar) --> (a list with data), and   *all-new-names* = (bar some
  21. old names too)
  22.  
  23. Thanks
  24. --Dave
  25. David S. Bright                        bright@enh.nist.gov  
  26. Microanalysis Research Group                                   
  27. National Institute of Standards & Technology (NIST, formerly NBS)
  28. Gaithersburg, MD 20899                                           
  29. USA
  30. 301-975-3911
  31.