Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] fumbling with Gc.finalise
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-05 (12:04)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] fumbling with Gc.finalise
From: Chris Quinn <>

>Would it not be more reasonable to treat the argument and
>finalisation closure as roots until the latter has actually completed

That's exactly what the current system does.  I guess what you want is
that the finalisation function for a value is not called until the
finalisation functions of all values that depend on it have finished
execution.  There are two problems with that:

1. What happens to circular values (a circular value depends on
   itself, directly or indirectly).

2. How to implement it with reasonable efficiency.  I don't have a

-- Damien
Bug reports:  FAQ:
To unsubscribe, mail  Archives: