January 31, 2008
"Saaa" <empty@needmail.com> wrote in message news:fnscv9$15aa$1@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.


January 31, 2008
I love being right :D
Thanks.

> Yes and yes.  In other words -- you can overload construction, but you can't overload copying.
(I find this sentence a lot more useful than the explaination on the website)

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


1 2
Next ›   Last »