[plt-scheme] transformers after expansion no longer needed

From: Jos Koot (jos.koot at telefonica.net)
Date: Wed Jul 16 07:31:29 EDT 2008

Thanks. But what when I import syntaxes from another module?

----- Original Message ----- 
From: "Eli Barzilay" <eli at barzilay.org>
To: "Jos Koot" <jos.koot at telefonica.net>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Wednesday, July 16, 2008 1:24 PM
Subject: Re: [plt-scheme] transformers after expansion no longer needed

> On Jul 16, Jos Koot wrote:
>> When running a module in DrScheme, the transformers used during
>> expansion cannot be discarded, because they may be used in the
>> interactions window. However, in many cases I no longer need the
>> transformers after expansion. Is there a way to make them garbage
>> collectable as soon as expansion is completed?
> You can use `let-syntax' for that, or other forms of local macros
> like:
>  (define foo
>    (let ()
>      (define-syntax ...)
>      blah))
> -- 
>          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.