Struct inheritance

Nick Treleaven nick at geany.org
Fri Dec 6 11:42:14 UTC 2024


On Friday, 6 December 2024 at 01:04:37 UTC, Jonathan M Davis 
wrote:
> class A {}
>
> class Foo
> {
>     A a;
>
>     alias this = a;
> }
> ```

Deprecating that was attempted:
https://dlang.org/changelog/2.103.0.html#dmd.deprecate-alias-this-for-classes

Is deprecation/removal planned for a future edition?


More information about the dip.ideas mailing list