[gambit-list] How to have define-macro expand to multiple

Adrien Piérard pierarda at iro.umontreal.ca
Sun Sep 13 23:20:46 EDT 2009


Comment should reads as
 ;; what was DEFINED in a macro *within* an EVAL  is shared by all
macros at this stage


> (define-macro (mac arg)
>  ;; what was DEFINED in a macro is shared by all macros at this stage
>  ;; But it's only accessible through EVAL.
>  (let ((r (eval `(fun ,arg))))
>    `(pretty-print ',r)))

P!

-- 
Français, English, 日本語, 한국어



More information about the Gambit-list mailing list