No Access to lvalue in static operator overloads.
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Wed Jul 4 05:08:44 PDT 2007
Giles Bathgate snipped:
>> a += b;
>> >
>> > Should compile into:
>> >
>> > Test.opCatAssign(a,b);
Giles Bathgate wrote:
>> (maybe Test.oAddAssign(a,b); ?)
>
> I don't see whay it should be any different from existing operator overloads: http://www.digitalmars.com/d/operatoroverloading.html
I he just meant to say that opAddAssign (as opposed to opCatAssign)
would be the correct method for "+=", but then made a typo and missed
the 'p'...
More information about the Digitalmars-d
mailing list