Operator Overloading

BlitzMax Forums/BlitzMax Beginners Area/Operator Overloading

Shortwind(Posted 2009) [#1]
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


N(Posted 2009) [#2]
No.


markcw(Posted 2009) [#3]
What Nilium said.


Gabriel(Posted 2009) [#4]
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?