Evaluation order of "+="

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 12 00:57:37 PDT 2016


On Tuesday, 12 July 2016 at 02:27:04 UTC, deadalnix wrote:
>
> There was a very lenghty discussion about this in the past. DMD 
> is correct on that one. The semantic is such as :
>
> int plusEqual(ref int a, int b) {
>   a = a + b;
>   return a;
> }

Thanks.
Could this be added to the spec please?



More information about the Digitalmars-d mailing list