Alias type with different initialiser.

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 13 17:31:10 PST 2017


On Monday, 13 February 2017 at 22:59:11 UTC, John Colvin wrote:
> [ snip ]

sorry, made a typo, that should have been

>     alias int1 = Initial!(int, 1);
>     static assert(int1.initial == 1); // typeof(int1.initial) 
> == int
>     static assert(int1.init == 1); // typeof(int1.init) == int1



More information about the Digitalmars-d-learn mailing list