Operators overloading in D2 again

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Mon May 3 09:49:53 PDT 2010


On Mon, 03 May 2010 16:46:41 +0000, Lars T. Kyllingstad wrote:
>         [...]
> 
>         Pair opBinary(string op)(Pair p)
>         {
>             auto r = this;
>             r.opOpAssign!op(p);

Sorry, that last line should be:

             r.opOpAssign!(op~"=")(p);

-Lars


More information about the Digitalmars-d-learn mailing list