No mass assignments for tuples

Timon Gehr timon.gehr at gmx.ch
Sun Dec 11 18:31:29 PST 2011


On 12/12/2011 12:23 AM, Simen Kjærås wrote:
> On Sat, 10 Dec 2011 15:46:15 +0100, bearophile
> <bearophileHUGS at lycos.com> wrote:
>
>> 46 + auto (i, j) = 10;
>> 47 + assert(i == 10);
>> 48 + assert(j == 10);
>
> Yeah, this is not good. Also, didn't we settle for (auto i, j)?

AFAIK the patch implements both, and I think that is the way it should be.


More information about the Digitalmars-d mailing list