Do classes require explicit constructors?

Mindy (0xEAB) desisma at heidel.beer
Sun Feb 22 11:56:12 UTC 2026


On Sunday, 22 February 2026 at 09:10:10 UTC, Mindy (0xEAB) wrote:
> On Saturday, 14 February 2026 at 15:57:09 UTC, Mike Parker 
> wrote:
>> How many exception constructors do you write? Minor annoyance, 
>> maybe, but massive pain? Really?
>
> While it may be a copy&paste task, I’ve ran into mistakes with 
> accidentally pasting unsuitable constructors with additional 
> parameters, making typos while fixing things up, missing 
> `super()` calls etc. Seems quite a bit of a hassle for 
> something that could be a trivial task.

Additional noteworthy issues include missing ingredients of the 
attribute soup or accidental omission of `super()` call 
parameters.


More information about the Digitalmars-d-learn mailing list