Blogpost about the T.init problem

Bastiaan Veelo Bastiaan at Veelo.net
Tue Jul 10 21:31:56 UTC 2018


On Tuesday, 10 July 2018 at 13:41:56 UTC, FeepingCreature wrote:
> I've written up a short blogpost about the T.init issue.
>
> It is not very enthusiastic.
>
> https://medium.com/@feepingcreature/d-structs-dont-work-for-domain-data-c09332349f43


Have you tried giving your invariants a valid  initial value? 
Change
>   string username;
into
>   string username = "noname";

-Bastiaan


More information about the Digitalmars-d-announce mailing list