Ben,
Thanks. I had tried something like that, before, but I wasn't quasiquoting the full (begin ...). What I came up with that works is this:
(define-macro (define2 name1 name2 val1 val2) `(begin (define ,name1 ,val1) (define ,name2 ,val2)))
This works as expected.
Thanks! :)
On Sun, Sep 13, 2009 at 11:42 AM, Ben Weaver ben@orangesoda.net wrote:
Hi Isaac,
On Sun, Sep 13, 2009 at 11:24 AM, Isaac Freeman memotype@gmail.com wrote:
Specifically I'm looking to expand a macro to multiple, distinct, top-level (define)'s.
Try expanding into a BEGIN:
(begin (define ...) (define ...) ...)
Good luck!
-Ben