Static operator overloads are possible why?
Derek Parnell
derek at psych.ward
Fri Jul 6 06:35:18 PDT 2007
On Fri, 06 Jul 2007 05:46:01 -0400, Giles Bathgate wrote:
>> void main()
>> {
>> Test T;
>> Test B;
>> Test.opAddAssign(T,B);
>> }
>
> Cheaters do not win medals. Its hardly an operator overload if you have to write Test.opAddAssign(T,B); instead of T += B; sorry.
> Do you see my point yet?
Hang on a minute, all you asked for was someone to "translate" the C# code
into D. And that is what I did. You did not specify that the resultant
translation must use the "+=" operator. Do you see my point? <G>
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list