[Issue 6367] Multi-assignment for typetuples is bad

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 31 23:19:31 PDT 2014


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



--- Comment #3 from monarchdodra at gmail.com 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: -------


More information about the Digitalmars-d-bugs mailing list