typedef behavior with @disable this()

Alex sascha.orlov at gmail.com
Sun Feb 11 01:16:01 UTC 2018


On Sunday, 11 February 2018 at 00:54:07 UTC, Simen Kjærås wrote:
>
> Typedef explicitly initializes the wrapped value to T.init, 
> thus circumventing the disabled default constructor. Filed a 
> bug:
>
> https://issues.dlang.org/show_bug.cgi?id=18415
>
> --
>   Simen

Thanks!


More information about the Digitalmars-d-learn mailing list