const AB c = {a,20, numbers};

Timon Gehr timon.gehr at gmx.ch
Mon Apr 16 15:03:41 PDT 2012


On 04/16/2012 11:43 PM, bearophile wrote:
> Timon Gehr:
>
>> auto c = AB(a, 20, numbers)<=>    AB c = {a, 20, numbers};
>>
>> auto c = const(AB)(a, 20, numbers)<=>    const AB c = {a, 20, numbers};
>
> I think your second equivalence is wrong:
> const c = AB(a, 20, numbers)<=>    const AB c = {a, 20, numbers};
>
> Bye,
> bearophile

This is what DMD currently does. This behavior does not make any sense.


More information about the Digitalmars-d-learn mailing list