[plt-scheme] equivalent to atexit?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Mon Mar 23 23:57:52 EDT 2009

It seems that memory served me wrong: only when writing C code, you can 
put objects under the management of custodians. 
http://docs.plt-scheme.org/inside/Custodians.html

For Scheme code, dynamic-wind would be more appropriate.

Chongkai

Chongkai Zhu wrote:
> You should look into /custodian/.
>
> Chongkai
>
> YC wrote:
>> Hi -
>>
>> is there an equivalent of atexit within mzscheme?  Basically - 
>> something that can be called in order when the mzscheme exits.  I am 
>> thinking of long living objects that is always referenced but should 
>> be cleaned up when the program is exiting.
>>
>> Thanks,
>> yc
>>
>> ------------------------------------------------------------------------
>>
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>   
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.