opOpAssign on object properties

collerblade via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 8 23:38:55 PST 2017


On Sunday, 8 January 2017 at 21:50:12 UTC, Ivan Kazmenko wrote:
> On Sunday, 8 January 2017 at 18:23:34 UTC, collerblade wrote:
>> [...]
>
> Hmm, right.
>
> The setter is not called, and it's by the spec.
> Which says that "a op= b" is rewritten as "a.opOpAssign !(op) 
> (b)".
> Here: https://dlang.org/spec/operatoroverloading.html#op-assign
>
> [...]



Y, i have came up the same conclusion. I have to place an event 
like system into the Point.

Ty


More information about the Digitalmars-d-learn mailing list