opCall example

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Jan 31 05:59:36 PST 2008


"Saaa" <empty at needmail.com> wrote in message 
news:fnscv9$15aa$1 at digitalmars.com...
>
> Should I see this as the memory copy having a preference above the 
> opCall(S)
> or, calling opCall(int) like S s=3 as being a special case?

Yes and yes.  In other words -- you can overload construction, but you can't 
overload copying.

Something planned for D2 is to allow overloading copying as well. 




More information about the Digitalmars-d-learn mailing list