[Issue 6367] Multi-assignment for typetuples is bad
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 31 19:14:07 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=6367
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Kenji Hara <k.hara.pg at 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: -------
More information about the Digitalmars-d-bugs
mailing list