Yet another MRV proposal!
Janice Caron
caron800 at googlemail.com
Tue Apr 15 01:28:16 PDT 2008
On 15/04/2008, Extrawurst <spam at extrawurst.org> wrote:
> First of all, returning Tuples with whatever syntax must be enabled, right
> ?
I don't understand the question. What do you mean "enabled"? We
already have tuples, right now. This is already valid, working, D:
> import std.typecons
>
> Tuple!(int,float) test()
> {
> return Tuple!(int,float)(1,2);
> }
>
> auto t = test();
> int a = t._0;
> float b = t._1;
The only question is whether or not the syntax can be improved.
More information about the Digitalmars-d
mailing list