Do classes require explicit constructors?
Mike Parker
aldacron at gmail.com
Sat Feb 14 15:57:09 UTC 2026
On Saturday, 14 February 2026 at 15:54:23 UTC, Richard (Rikki)
Andrew Cattermole wrote:
>
>>> They are massive pain for exceptions.
>>
>> Why are they a massive pain? Please explain.
>
> You have to manually write the constructors for every exception
> you want to declare yourself.
>
> Normally with IDE's you'd have assistance and it would be done
> automatically, but that isn't normal for D.
>
> There are multiple parameters. Not a joy.
How many exception constructors do you write? Minor annoyance,
maybe, but massive pain? Really?
More information about the Digitalmars-d-learn
mailing list