[plt-scheme] Let-syntax not transparent to top-level defines

From: Brian Campbell (lambda at mac.com)
Date: Thu Aug 22 17:54:46 EDT 2002

I am writing a macro that expands to a let-syntax expression, 
which binds #%app. This works fine when it's wrapped around most 
expressions. When you wrap it around a group of top level 
defines, however, it introduces a new lexical scope, rather than 
being transparent to them. I would like to have something like 
the following at the top level:

   (define (foo bar)
     (+ 1 bar))
   (define (baz quux)
     (* 10 quux)))

and have those defines apply at the top level with #%app rebound 
to the right thing. I also need this to work within the top 
level of a module. Is there any way for me to do something like 

Posted on the users mailing list.