When is a class's destructor called?

bearophile bearophileHUGS at lycos.com
Sun Dec 29 02:13:20 PST 2013


Mike:

> How does the garbage collector know when something has gone out 
> of scope

The garbage collector doesn't know that.
Look in Wikipedia how a Mark&Sweep GC works.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list