[plt-scheme] Expanding into top-level

From: Paul Steckler (steck at ccs.neu.edu)
Date: Fri May 9 12:28:03 EDT 2003

I have a syntax-rules macro that expands into a top-level 
definition, something like

  (define-syntax foo
    (syntax-rules ()
      [(_ name e1 e2)
       (define name (bar e1 e2))]))

Except I don't really want to define `name', I want 
to define `name-prime'.  How can I build an identifier 
and still have a top-level definition?

-- Paul (who doesn't know the macro system as well as he should)

Posted on the users mailing list.