instantiate each of a tuple of templates (Take 2)
John Colvin
john.loughran.colvin at gmail.com
Fri Aug 2 05:52:59 PDT 2013
On Friday, 2 August 2013 at 12:47:24 UTC, Dicebot wrote:
> 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.
Thanks, that's how I thought it worked.
More information about the Digitalmars-d-learn
mailing list