[plt-scheme] macro expension order

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Mon Jul 9 20:45:44 EDT 2007

Chongkai Zhu skrev:
> The problem is: to _compile_ SML code into PLT Scheme, not to manually 
> translate ML.

Yes. Prepend

    (define-struct NONE ())
    (define-struct SOME (b))

to the program. Then translate NONE to (make-NONE), and
(SOME <expr>) to (make-some <translation-of-expr>).

-- 
Jens Axel Søgaard



Posted on the users mailing list.