Re: Macros: returning multiple lists

From: Thomas A. Russ (tar_at_sevak.isi.edu)
Date: 03/01/05


Date: 01 Mar 2005 09:47:59 -0800


The standard mechanism to have multiple forms returned from macros is to
enclose them in a PROGN. That assumes, of course, that you want the
forms to execute for side effects rather than value. If you want value,
then you pretty much have to make a list of them and apply any other
external-to-the-macro operations to that list.

-- 
Thomas A. Russ,  USC/Information Sciences Institute


Relevant Pages

  • Re: CL Performance/Syntax of IF-THEN-ELSE
    ... >PROGN is essential when you want to return the multiple values of the ... syntax used with since both the declaration and ... I'm still a bit murky on what CL (PROG ...) returns and more ...
    (comp.lang.lisp)
  • Macros for seriously interested people
    ... They show how a couple of judiciously placed macros can ... Pragmatic Parsing in Common Lisp ... (PROGN ... (SETF ...
    (comp.lang.lisp)
  • Findfiles finds(?) phantom files....
    ... I have a handful of macros that I have bundled into an addin for ... they have copies in multiple locations.... ... uninstalls the addin, then finds and deletes the source file. ... This works fine except that the .findfile part appears to be finding files ...
    (microsoft.public.excel.programming)
  • call multiple macros in workbook_open?
    ... But I am not sure how to do this for multiple ... MY QUESTION IS HOW DO I DELETE QUERYTABLES AND CALL MULTIPLE MACROS ... 'Call macro to run new query ...
    (microsoft.public.excel.programming)
  • Re: Explanation of macros; Haskell macros
    ... > too difficult or easily doable without macros. ... (PROGN ... (if (symbolp arg) ...
    (comp.lang.python)