export keyword

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 24 03:03:06 PDT 2014


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


More information about the Digitalmars-d mailing list