A Discussion of Tuple Syntax

bearophile bearophileHUGS at lycos.com
Mon Aug 19 12:57:41 PDT 2013


> void main() {
>     auto t1 = #(5, "hello", 1.5);
>     auto (_,  _, x) = t1;
>     auto (_, gr, _) = t1;
> }

I need to get used to the proposed syntax, sorry:

void main() {
     auto t1 = #(5, "hello", 1.5);
     auto #(_,  _, x) = t1;
     auto #(_, gr, _) = t1;
}

Bye,
bearophile


More information about the Digitalmars-d mailing list