Irrlicht3d.org
::
Blog
|
About Me
|
Twitter
Add comment for
Operator Overloading, please
Posted by:
Enter the missing letter in: "Internationa?"
Text:
[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]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons