Static operator overloads are possible why?

Giles Bathgate gilesbathgate at gmail.com
Fri Jul 6 02:46:01 PDT 2007


> 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?



More information about the Digitalmars-d mailing list