August 03, 2005 Re: Did I find the death tractor? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | "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. |
Copyright © 1999-2021 by the D Language Foundation