Overloading the assignment operator, right now!
Hasan Aljudy
hasan.aljudy at gmail.com
Thu Sep 14 12:13:44 PDT 2006
Georg Wrede wrote:
> Overloading of the assignment operator is not allowed in D.
>
> But no problem, we can do it right now, in spite of it.
>
> Just overload the opCatAssign operator instead, and use ~= where = would
> be used.
>
> This way we might gather enough use cases to really know whether it is
> good or bad in practice.
<snip>
Why do you have to think in C++ when coding in D?
More information about the Digitalmars-d
mailing list