I hate class destructors with a burning passion

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jun 9 16:06:50 UTC 2021


On Wed, Jun 09, 2021 at 12:58:49AM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
[...]
> In fairness, the fact that D has no user-definable default
> constructors weakens that argument (and is a weakness of the language
> itself that we'd do good to fix).

This only applies to structs. Classes do have user-definable default ctors.

Nevertheless, the lack of user-definable default ctors in structs has
been a frequent complaint.


T

-- 
Latin's a dead language, as dead as can be; it killed off all the Romans, and now it's killing me! -- Schoolboy


More information about the Digitalmars-d mailing list