Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] fumbling with Gc.finalise
From: Chris Quinn <cq@htec.demon.co.uk>

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

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
   solution.

-- Damien
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr