[plt-scheme] Interaction between Dr. Scheme and foreign libraries

From: Corey Sweeney (corey.sweeney at gmail.com)
Date: Sun Nov 20 14:13:42 EST 2005

this seems like a hack but have you considered createing a file
".session.lock", and have drscheme remove it uppon every boot. Then have the
program load the library if there is no ".session.lock" file, (and after
loading it, the program would create the ".session.lock" file).

Corey

On 11/19/05, Ittai Balaban <balaban at cs.nyu.edu> wrote:
>
> Hi.
> I've run into the following situation, trying to use DrScheme with a
> file requiring a module that does initialization of a foreign library:
> When you hit 'run' in DrScheme, the interaction environment is
> completely "rebooted", i.e. a module loaded before the 'run' will be
> reloaded post-run. However, while scheme is effectively in a fresh
> state, this is not true for the foreign library, leading to it being
> initialized again and again on subsequent 'run's.
>
> Any suggestions (other than requiring the user to explicitly initialize
> foreign libraries)? Specifically, I have some module code that I would
> like to run *once* per DrScheme process.
>
> Thanks
> --
> Ittai
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQBDf3gPMSX6uw5QMQoRAjKRAJ0WTTvIMvKRf9DT9XQEBenNRmCA+gCeKfML
> dDDW7tuaP64zs/N4jqeW3pE=
> =mrzl
> -----END PGP SIGNATURE-----
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>
>


--
((lambda (y) (y y)) (lambda (y) (y y)))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20051120/4dd2f16a/attachment.html>

Posted on the users mailing list.