[plt-scheme] shared state across multiple REPLs

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Jan 24 11:36:02 EST 2004

This is (somewhat) by design. It is the same basic problem as the
history in your shell when you run multiple xterms in X11. Eventually,
there must only be one history that is saved when DrScheme exits. I
chose to make only one history ever and all interactions get put at the
end of that single history. You'll find that if you hit meta-p one more
time at the end of the sequence you describe below, you'll get (foo).

If you'd rather something else, I'm all ears, do be sure to explain
what happens after restarting drscheme.

Robby

At Sat, 24 Jan 2004 11:10:03 -0500, David Herman wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> What's the rationale behind the following DrScheme behavior?
> 
> Open two DrScheme windows. In the first window, define a `foo' function 
> in the definitions window and execute. In the second window, define a 
> `bar' function in the definitions window and execute. Go back to the 
> first window and type (foo) at the REPL. Then go to the second window 
> and type (bar) at the REPL. Now return to the first window and hit 
> Meta-P. You get (bar) as the last command, not (foo).
> 
> This means there's a global state representing the recent-command list, 
> shared across multiple windows. Is this by design, an oversight, or 
> just not important enough to fix?
> 
> Thanks,
> Dave
> 
> 



Posted on the users mailing list.