← Back to index
|
Original Bugzilla link
Bug 8970 – Tuple should support conversion from tuple with unnamed fields to tuple with named fields
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-07T03:52:00Z
Last change time
2012-11-12T08:49:08Z
Assigned to
nobody
Creator
simen.kjaras
Comments
Comment #0
by simen.kjaras — 2012-11-07T03:52:59Z
Ref this discussion:
http://forum.dlang.org/thread/
[email protected]
?page=7#post-mailman.603.1343078070.31962.digitalmars-d:40puremagic.com
http://forum.dlang.org/thread/
[email protected]
?page=8#post-jul0qv:242l9d:241:40digitalmars.com
Specifically, this regards named tuples as return values. This currently works: Tuple!(float, "x", float, "y") bar() { return typeof(return)( 0.0, 0.0 ); } This should work: Tuple!(float, "x", float, "y") bar() { return tuple( 0.0, 0.0 ); }
Comment #1
by simen.kjaras — 2012-11-12T08:49:08Z
*** This issue has been marked as a duplicate of issue 8570 ***