home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!olivea!charnel!sifon!CC.UMontreal.CA!kardank
- From: kardank@ERE.UMontreal.CA (Kardan Kaveh)
- Newsgroups: comp.lang.lisp
- Subject: macro question
- Message-ID: <1993Jan7.040552.27087@cc.umontreal.ca>
- Date: 7 Jan 93 04:05:52 GMT
- Sender: news@cc.umontreal.ca (Administration de Cnews)
- Organization: Universite de Montreal
- Lines: 17
-
- I would like to define a macro which in turn defines several functions.
- For example:
-
- (defmacro a (x y)
- `(defun ,x () (+ 2 2))
- `(defun ,y () (* 2 3)))
-
- As it stands, the macro only defines the second function, since that is the
- returned value. How can I get both functions defined?
-
- Thanks.
-
- --
- ------------
- Kaveh Kardan kaveh@taarna.UUCP
- Systeme Taarna kardank@eole.umontreal.qc.ca
- Montreal Quebec Canada (514)844-8448
-