[Issue 8570] New: Tuples without named fields should implicitly convert to tuples with named fields when returned from a function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 20 23:24:50 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8570
Summary: Tuples without named fields should implicitly convert
to tuples with named fields when returned from a
function
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: simen.kjaras at gmail.com
--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2012-08-20 23:24:48 PDT ---
Currently, this compiles:
void bar( ) {
Tuple!( int, "a", float, "b" ) t = tuple( 1, 2.0 );
}
And this does not:
Tuple!( int, "a", float, "b" ) foo( ) {
return tuple( 1, 2.0 );
}
Ref. discussion:
http://forum.dlang.org/thread/sedknwtlaefrxuflnbez@forum.dlang.org?page=8#post-jul0qv:242l9d:241:40digitalmars.com
--
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