[plt-scheme] v4: object-name of port

From: Aleks Bromfield (aleks at cs.brown.edu)
Date: Tue Feb 5 15:54:21 EST 2008

On Tue, Feb 05, 2008 at 09:35:55AM -0600, Robby Findler wrote:
> I think this is the best thing to do: during the on-execute callback,
> create a thread (on drscheme's space) that waits for the user's thread
> to die (you can get a handle to the user's thread by using
> run-on-user-thread and getting the value of (current-thread)). When it
> dies, kill the ocaml process. Something like this (I didn't test this
> code, but hopefully it is close enough to give you the idea):

Suppose that I have two tabs, A and B, which have open the files a.ml
and b.ml respectively. I switch to tab A, then click run. Then I switch
to tab B, then click run. Now, I switch back to tab A. I want the
interactions pane to be associated with the ocaml process from the last
time I clicked run 

Posted on the users mailing list.