Add comment for
Operator Overloading, please
Enter the missing letter in: "Internatio?al"
[quote][b]Tazo[/b] wrote: At best it is a very good argument against misusing operators, but anything can be misused. Everyone should stay the hell away from operator overloading if he is writing something that is not the mathematical operation associated with this operator. Vector times vector equals scalar, namely the dot product. Implementing scaling is a misuse of operator overloading, and the fact that many implementations (including Irrlicht) do it does not change the fact that it is a misuse. To sum it up, here are my rules for operator overloading: 1) Don't do it. 2) No seriously, don't do it. 3) You still here? 4) Allright, but do it only if you are mirroring exactly the mathematical operation associated with this operator. Otherwise you are sacrificing speaking code for short code. I still do not agree that languages simply should not put it in.[/quote]
[url] www.example.com [/url]
Imprint and Data Policy