Improvement to struct inheritance possible?
zjh
fqbqrr at 163.com
Thu Jan 18 07:28:22 UTC 2024
On Thursday, 18 January 2024 at 07:10:49 UTC, Danilo wrote:
> Could this please get improved a little bit, so "inherited"
> structure members using `alias this` are already available for
> constructor paramaters?
>
> Thanks!
Why can't struct be inherited ?C++ has good `struct inheritance`,
and it's there.
The disadvantage of `C++ inheritance` is that every `subclass`
with a template now needs to add its `own name` and ugly `::`,
which is becoming increasingly unsightly! This is `very foolish`,
More information about the Digitalmars-d
mailing list