seany:

does d support declarations like:

class C {

public :

int a;
string b;
double c;

}

Yes, that's possible.


and could I as well write

class C2{

auto x

this(T)(T y)
{
   this.x = y;
}

}

This is not possible, and I see no plans in supporting that. You have to use some workaround, like a helper function...

Bye,
bearophile

Reply via email to