[Issue 5013] std.typecons.Tuple should have constructor for static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 7 13:58:51 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5013
--- Comment #1 from Tomasz Sowiński <tomeksowi at gmail.com> 2010-10-07 13:58:25 PDT ---
(In reply to comment #0)
> This leaves the reverse conversion unimplementable. A way out can be:
>
> Tuple!(int, int) t;
> auto ints = to!(int[2])(t);
Or:
auto ints = cast(int[2]) t;
Seems more appropriate as no conversion takes place.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list