when is the object destuctor called?

Walter Bright newshound at digitalmars.com
Wed May 24 20:38:05 PDT 2006


Tony wrote:
> It would be nice to have a more general mechanism than garbage collection, 
> which allowed the programmer to register additional resources (other than 
> memory) for automated management.

Jarrett described such a mechanism he uses - an associative array he 
fills with resource references, then deletes them all in a static 
destructor.



More information about the Digitalmars-d mailing list