Static operator overloads are possible why?
David L. Davis
SpottedTiger at yahoo.com
Fri Jul 6 08:35:28 PDT 2007
Give the man his medal! :) (It's not creating, if you follow the rules)
Derek Parnell Wrote:
> 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