handling multiple scheme instances Tom Lord (23 Dec 2003 23:05 UTC)
Re: handling multiple scheme instances Shiro Kawai (23 Dec 2003 23:24 UTC)
Re: handling multiple scheme instances tb@xxxxxx (23 Dec 2003 23:29 UTC)
Re: handling multiple scheme instances Michael Sperber (27 Dec 2003 16:12 UTC)
Re: handling multiple scheme instances Tom Lord (27 Dec 2003 18:48 UTC)

Re: handling multiple scheme instances Tom Lord 27 Dec 2003 19:13 UTC

    > From: Michael Sperber <xxxxxx@informatik.uni-tuebingen.de>

    Tom> Every function should take an extra parameter which
    Tom> represents the particular Scheme instance under
    Tom> consideration.  I might be running two different Scheme
    Tom> worlds in one process.

    > Can't you handle this implicitly? Or do you need to switch
    > between instances along a single call chain?

I'd prefer to be able to mix them, for example to be able to write
primitives which perform communication between them.

I think of them as comparable to the DISPLAY* parameters in Xlib.

It is a trade-off, I admit, between register pressure and fast/easy
access to instance-specific state.

-t