https://d.puremagic.com/issues/show_bug.cgi?id=6367



--- Comment #3 from [email protected] 2014-03-31 23:19:14 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > Is this an actually documented feature?
> > 
> > Does the spec say it works, or does it just happen to look that way...?
> 
> It's properly documented.
> 
> http://dlang.org/tuple

That page makes no mention of initialization. It merely states that:
"A variable declared with a TypeTuple becomes an ExpressionTuple"

I'm asking about said items initialization scheme:

//----
import std.typetuple;

void main()
{
   alias T = TypeTuple;
   T!(int, int) t1 = T!(1, 2); // OK
   T!(int, int) t2 = 1; // OK?
}
//----

Further, std.typecons.Tuple does not support such an initialization scheme.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to