auto classes and finalizers
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed Apr 5 13:41:22 PDT 2006
"Sean Kelly" <sean at f4.ca> wrote in message
news:e10pk7$2khb$1 at digitaldaemon.com...
> - a type can have a destructor and/or a finalizer
> - the destructor is called upon a) explicit delete or b) at end of
> scope for auto objects
> - the finalizer is called if allocated on the gc heap and the
> destructor has not been called
Would you mind explaining why exactly there needs to be a difference between
destructors and finalizers? I've been following all the arguments about
this heap vs. auto classes and dtors vs. finalizers, and I still can't
figure out why destructors _can't be the finalizers_. Do finalizers do
something fundamentally different from destructors?
More information about the Digitalmars-d
mailing list