No doubt you will soon get more precise answers, and help for your goal, from others, but the first step is that macros in scheme and racket are not straight textual substitutions.
The a_definition in the template of my_macro has much the same scope as it would if my_macro were just a function (defined with define, and then I'd refer to (display a_definition) as “the body” rather than “the template”). -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/f88821df-5cac-40fb-a097-ee94ca25c066%40googlegroups.com.