home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / lisp / 2911 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  44 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!gmdtub!prosun!wolf
  2. From: wolf@prosun.first.gmd.de (Wolfgang Koehler)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Help: apply for macros ???
  5. Message-ID: <2610@bigfoot.first.gmd.de>
  6. Date: 19 Nov 92 11:08:24 GMT
  7. Sender: news@bigfoot.first.gmd.de
  8. Organization: GMD-FIRST, D-1000 Berlin 10
  9. Lines: 33
  10.  
  11. I use CMU-Lisp and  allegro since more than one year.
  12. But since some days I am stuck with a problem that might have a very
  13. simple solution, but I'm not clever enough to get it.
  14.  
  15. consider you have a function f and want to call it from some other
  16. function g with its &rest arguments.
  17. Then you may use the apply function :
  18.  
  19. (defun f (p1 p2 ...)
  20.   ...)
  21.  
  22. (defun g (&rest args)
  23.  (apply #'f args))
  24.  
  25. My question :
  26.  
  27. Does there exist a similiar solution if "f" is a macro ???
  28.  
  29. Any help is greatly appreciated.
  30.  
  31.  
  32. wolf
  33.  
  34. -- 
  35. -------------------------------------------------------------------------
  36.     ... always look on the bright side of life ... (Monty Python)
  37. -------------------------------------------------------------------------
  38. Wolfgang Koehler                               wolf@first.gmd.de
  39. GMD-FIRST an der TU Berlin              German National Research Centre 
  40. Tel. (Berlin 030/049) 6704-2650              for Computer Science
  41.  
  42.  
  43.  
  44.