[plt-scheme] Where is macroexpand in PLT Scheme?

From: John Clements (clements at brinckerhoff.org)
Date: Wed Nov 12 09:05:06 EST 2003

On Wednesday, November 12, 2003, at 08:30  AM, Bill Clementson wrote:

>
> --- Dor Kleiman <dor at ntr.co.il> wrote:
>> The expander expands code in the editor. Its source
>> is kept in a variable that is part of the editor.
>> That variable is probably what is defined in
>> colorer.ss
>
> Do you think that is correct behavior? The expander is
> supposed to be expanding "code in the editor", it is
> not supposed to be expanding "editor code".

The expander _is_ expanding "code in the editor".

Look at it this way.  What source would you give to the code in the 
definitions window?

A filename?  But maybe the text has never been saved, or maybe the text 
in the definitions window is different from that in the file.  In 
DrScheme, the source for code from the definitions window is listed as 
being the definitions window itself.

I surmise that you would be less confused if the source was listed as 
"definitions window".  That's exactly what DrScheme is telling you.  
What is the definitions window?  It's an instance of a class.  How does 
DrScheme print out an instance of a class?  By describing the class, 
including a reference to the file in which it was defined.

john



Posted on the users mailing list.