
21 Apr
2009
21 Apr
'09
6:13 a.m.
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