Can't compile the code

Ali Çehreli acehreli at yahoo.com
Sun Apr 28 10:45:08 PDT 2013


On 04/28/2013 09:14 AM, bearophile wrote:
> Temtaime:
>
>>         auto f = (bool = false) {};
>
> I don't understand this syntax.
>
> Bye,
> bearophile

The name of the parameter is omitted. Could have named it as 'p':

     auto f = (bool p = false) {};

Ali



More information about the Digitalmars-d-learn mailing list