Overloading the assignment operator, right now!
Sean Kelly
sean at f4.ca
Thu Sep 14 08:52:18 PDT 2006
Georg Wrede wrote:
> Overloading of the assignment operator is not allowed in D.
Overloading the assignment operator in a language where objects are
manipulated through references would be a bit weird, wouldn't it? It
would almost require the creation of a new assignment operator meant
specifically for copy semantics, similar to how we have '==' and 'is'
for identity vs. equality comparisons.
Sean
More information about the Digitalmars-d
mailing list