]Gary Whatmore <[email protected]> wrote:
The D way of returning tuples is:T!(int,int) ret; auto f = (ref T!(int,int) r){ r = e; }; f(ret);
D also has better tuples in std.typecons.
auto t1 = tuple( 1,2 );
auto t2 = { return t1; }
--
Simen
]Gary Whatmore <[email protected]> wrote:
The D way of returning tuples is:T!(int,int) ret; auto f = (ref T!(int,int) r){ r = e; }; f(ret);
D also has better tuples in std.typecons.
auto t1 = tuple( 1,2 );
auto t2 = { return t1; }
--
Simen