Operator Overloading
BlitzMax Forums/BlitzMax Beginners Area/Operator Overloading
| ||
I assume you can't do overloading in BlitzMax yet? I want to overload the +,-,/,* etc... Any mods out there that allow for this? Thanks, Shortwind |
| ||
No. |
| ||
What Nilium said. |
| ||
It would be awesome to have, but not sure if it would be wise as a modified BMK or preprocessor. Without having compiler support for it, I guess it would have to internally use some method names, which might clash with actual methods you'd written. It might seem safe to think that no one has methods called _Plus() or _Minus() but who's to say? |