Understanding opAssign and 'alias this'

Maurice m-ou.se at m-ou.se
Mon Oct 14 01:56:12 PDT 2013


On Sunday, 13 October 2013 at 22:47:12 UTC, Kozzi wrote:
>
> It is a bug from my POV

It sure seems like it. But what would be the correct behaviour? 
Should [1] and [2] both work in both cases? What are the rules 
around the default opAssign? Does the default one disappear by 
adding a opAssign(int)?


More information about the Digitalmars-d-learn mailing list