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

bearophile bearophileHUGS at lycos.com
Mon Apr 16 14:43:01 PDT 2012


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


More information about the Digitalmars-d-learn mailing list