August 03, 2005
"Ben Hinkle" <ben.hinkle@gmail.com> wrote in message news:dcpcef$4f6$1@digitaldaemon.com...
> > As I understand it, D developers should
> >     * avoid relying on destructors to free up resources
>
> destructors are exactly for freeing up resources - but they can't be GC-managed resources. They must be "external" resources like malloc'ed memory or system resources like a Win32 HANDLE.

Right. Which means that finalizers *can* free up other object instances, as long as those instances were not allocated with the GC.


1 2
Next ›   Last »