export keyword
dennis luehring via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 24 03:23:36 PDT 2014
Am 24.06.2014 11:34, schrieb seany:> Also, while we are at it,
>
> does d support declarations like:
>
> class C {
>
> public :
>
> int a;
> string b;
> double c;
>
> }
read the manual first http://dlang.org/class
> and could I as well write
>
> class C2{
>
> auto x
>
> this(T)(T y)
> {
> this.x = y;
> }
>
> }
would not make sense at all
you would then also need methods that can auto-magicaly work with your x
- that ist not (clean) be possible
maybe a template+interface could help - but it seems that your
implementation ideas are a little strange - give an example of what you
try to reach
More information about the Digitalmars-d
mailing list