https://d.puremagic.com/issues/show_bug.cgi?id=6367
Kenji Hara <k.hara...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Kenji Hara <k.hara...@gmail.com> 2014-03-31 19:14:06 PDT --- (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 > Tuple Declarations > > A variable declared with a TypeTuple becomes an ExpressionTuple: > > alias TL = Tuple!(int, long); > > void foo(TL tl) > { > writeln(tl, tl[1]); > } > > foo(1, 6L); // prints 166 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------