initializer list like in C++?

Jarrett Billingsley kb3ctd2 at
Tue Jul 24 06:25:29 PDT 2007

"Hoenir" <mrmocool at> wrote in message 
news:f84rnt$1db0$1 at
> Is there anything like the initializer list (C++) in D?
> class Test {
> int x;
> Test(int y):x(y){};
> }

No.  See 
for an explanation on why D doesn't have them. 

More information about the Digitalmars-d-learn mailing list