when is the object destuctor called?

Tom S h3r3tic at remove.mat.uni.torun.pl
Mon May 22 16:43:10 PDT 2006


kris wrote:
> You might take a look at what Ares does in this regard? It allows one to 
> intercept object collection, and lets you know whether the cleanup is of 
> deterministic or "unspecified" nature. Invoking a dtor is only 
> considered reliable in the deterministic case, so Ares allows one to 
> trap and then optionally avoid dtor calls for that other case. One might 
> use this mechanism to detect resource-leaks also.

Sounds great :) Thanks for the info, I'll have to take a look at Ares.


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O 
!M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------

Tomasz Stachowiak  /+ a.k.a. h3r3tic +/



More information about the Digitalmars-d mailing list