export keyword
rumbu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 24 07:35:13 PDT 2014
On Tuesday, 24 June 2014 at 09:34:44 UTC, seany wrote:
> and could I as well write
>
> class C2{
>
> auto x
>
> this(T)(T y)
> {
> this.x = y;
> }
>
> }
>
> This would help me, for example, to use a single definition, to
> cover, e.g. int and double, and not write them twice - as in
> usual overload...
class C2(T)
{
T x;
this(T y) { this.x = y }
}
Eventually C2!T can inherit an abstract class C1 with basic
functionality or an interface.
More information about the Digitalmars-d
mailing list