D classes inherane. How it works.
BCS
BCS at pathlink.com
Tue Apr 8 09:35:13 PDT 2008
Janice Caron wrote:
> The simple answer is:
>
> Get rid of all your destructors. You don't need them.
> Get rid of all your delete statements. You don't need them.
>
> That's pretty much how you write code in D. (D has a garbage
> collector. It takes care of cleanup for you).
that only works in most cases where the object only owns memory
resources. If it owns files, mutexes, database connections, stock
options or Corvettes, your sunk.
More information about the Digitalmars-d
mailing list