Is `alias this` a mistake?

Nick Treleaven nick at geany.org
Wed Aug 4 10:57:00 UTC 2021


On Wednesday, 4 August 2021 at 00:29:21 UTC, Mike wrote:
> My suggestion has been to deprecate (or at least discourage) 
> `alias this` for classes,

It might be useful to allow `alias this` in a `final class` for 
when you want a wrapper that is a reference type.

> More on that can be read at 
> https://forum.dlang.org/post/vggskphkqxtriqnavmnf@forum.dlang.org

Thanks.


More information about the Digitalmars-d mailing list