Inheritance and arrays
FeepingCreature
feepingcreature at gmail.com
Mon Jul 3 10:08:36 UTC 2023
On Monday, 3 July 2023 at 09:50:20 UTC, Arafel wrote:
> Hi!
>
> I am a D user coming from java, rather than from C/C++
> (although obviously also have some exposure to them), and thus
> apparently one of the few people here who likes OO (within
> reason, of course).
>
> So while I appreciate the fact that D closely follows java's
> design, I wonder why there is no implicit inheritance for
> arrays (also the same applies to AAs):
>
> ...
>
> Is this a conscious design decision (if so, why?), or just a
> leak of some implementation detail, but that could eventually
> be made to work?
See also this thread on implementation details:
https://forum.dlang.org/post/bibtjiiwpiqzzfwgxgdd@forum.dlang.org
More information about the Digitalmars-d-learn
mailing list