Operator implicit conversion difference

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 5 10:58:33 PST 2015


On 11/05/2015 05:20 AM, ixid wrote:

 > This seems very inconsistent, does a += b not lower to a = a + b?

Apparently not:

   http://dlang.org/expression.html#AssignExpression

It says "The right operand is implicitly converted to the type of the 
left operand". So, the rules are different.

Ali



More information about the Digitalmars-d-learn mailing list