Subject: Re: [boost] request for interest in a garbage collection library
From: Esben Mose Hansen (boost_at_[hidden])
Date: 2009-04-21 02:13:50
On Monday 20 April 2009 19:03:59 Achilleas Margaritis wrote:
> But gc'd objects are are not supposed to touch other gc'd objects in
> their destructor (if you check the readme, I explicitly say that the
> order of finalization is random). Is there a realistic need to call
> another gc'd object from a destructor?
I think the tradeoffs are reasonable.. However, would it be possible to have an
assert if a gc_ptr is accessed (in a destructor) during garbage collection?
That would improve the safety immensely, I think.
-- Kind regards, Esben
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk