home *** CD-ROM | disk | FTP | other *** search
- 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
- From: wolf@prosun.first.gmd.de (Wolfgang Koehler)
- Newsgroups: comp.lang.lisp
- Subject: Help: apply for macros ???
- Message-ID: <2610@bigfoot.first.gmd.de>
- Date: 19 Nov 92 11:08:24 GMT
- Sender: news@bigfoot.first.gmd.de
- Organization: GMD-FIRST, D-1000 Berlin 10
- Lines: 33
-
- I use CMU-Lisp and allegro since more than one year.
- But since some days I am stuck with a problem that might have a very
- simple solution, but I'm not clever enough to get it.
-
- consider you have a function f and want to call it from some other
- function g with its &rest arguments.
- Then you may use the apply function :
-
- (defun f (p1 p2 ...)
- ...)
-
- (defun g (&rest args)
- (apply #'f args))
-
- My question :
-
- Does there exist a similiar solution if "f" is a macro ???
-
- Any help is greatly appreciated.
-
-
- wolf
-
- --
- -------------------------------------------------------------------------
- ... always look on the bright side of life ... (Monty Python)
- -------------------------------------------------------------------------
- Wolfgang Koehler wolf@first.gmd.de
- GMD-FIRST an der TU Berlin German National Research Centre
- Tel. (Berlin 030/049) 6704-2650 for Computer Science
-
-
-
-