Alias type with different initialiser.
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 14 12:18:00 PST 2017
On Monday, February 13, 2017 22:59:11 John Colvin via Digitalmars-d-learn
wrote:
> Also, it's
> generally a bad idea to define `.init` for any type as code
> generally expects this to be the compiler-generated property
> (e.g. a value of type Initial!(int, 1) not of type int).
And there's actually a decent chance that at some point, it will become
illegal precisely because of the problems that it causes to allow it.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list