What is the state of opAssign?

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Oct 19 17:19:09 PDT 2007


"BCS" <BCS at pathlink.com> wrote in message 
news:ffbf1l$cbo$1 at digitalmars.com...
> Is it or will it be possible, in v1.0 or v2.0, to define overloads sutch 
> that this works?
>
> class C{}
>
> auto c = new C;
>
> real r = c;

It's called opImplicitCast, and yes, it will be in D2. 




More information about the Digitalmars-d-learn mailing list