Operators overloading in D2 again
bearophile
bearophileHUGS at lycos.com
Mon May 3 17:35:06 PDT 2010
Dan:
> I'm still really sceptic, especially because they look to me inconsistent to each
> other.
Yes, they seem divided in two groups, with different level of complexity, etc.
This is true, and I think this is by design, opCmp and opEquals and few others are useful in many classes. While overloading the []+= operator is for someone that wants to design a new refined data structure, something less common and that requires quite more care.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list