instantiate each of a tuple of templates (Take 2)

Dicebot public at dicebot.lv
Fri Aug 2 05:47:22 PDT 2013


On Friday, 2 August 2013 at 12:37:00 UTC, John Colvin wrote:
> Are all types guaranteed to have a working .init value? I can't 
> think of any way not to, but I just want to be sure.

Not sure what you mean by "working" but there is a hard guarantee 
that for any type "T.init" will compile and result in some value. 
That was the key idea behind .init and reason why default 
constructors are prohibited for structs.


More information about the Digitalmars-d-learn mailing list