Do classes require explicit constructors?

Andy Valencia dont at spam.me
Sun Feb 15 15:08:21 UTC 2026


On Saturday, 14 February 2026 at 15:50:46 UTC, Brother Bill wrote:
> Eiffel may be the only language that supports inheriting 
> constructers.

I believe this all goes back to Smalltalk, where constructors are 
just methods on the single object representing a given class.  
That class object inherits from the superclass, and inherited 
constructors are thus not a special case at all.  Busy-work 
plumbing of constructors in D is esthetically displeasing in a 
mostly elegantly designed language.  But I would not call it a 
big deal.  Shrug.

Andy



More information about the Digitalmars-d-learn mailing list