unpacking

bearophile bearophileHUGS at lycos.com
Tue Dec 7 10:20:15 PST 2010


spir:

> Is there a way to unpack an array into local vars, as:
> 	auto x = [1,2,3];
> 	a,b,c = x;

Not yet, but I have asked this feature for tuples too and maybe someone has appreciated it.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list