Original Post
Can we ask ...... Operator overloading is also called redesigning the language.
Quote:
Original post by Photonman
Well, you could actually make a global function that overloads XOR (^) and change it to become a pow operator. Doing so, I suppose, would be redefining the language (sort of), however, you can't change the precendence of the operator, and XOR is much lower than exponent, so you would always have to use parens to get the precedence to work right.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more