Overloading the assignment operator, right now!

Hasan Aljudy hasan.aljudy at gmail.com
Thu Sep 14 17:43:23 PDT 2006



Georg Wrede wrote:
> Hasan Aljudy wrote:
> 
>> 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?
> 
> <snip> 
> Then again, some other people have really wanted it,
<snip>

so my point still stands.



More information about the Digitalmars-d mailing list