Does BMax support Operators and User Def. Types?
BlitzMax Forums/BlitzMax Programming/Does BMax support Operators and User Def. Types?
| ||
I'm guessing it doesn't, but some of the good stuff is squirreled away in obscure areas of the docs I always miss, so I thought it was worth asking. I'm trying to create a Blitz type to emulate a C Class, and if not, I'll just have to create additional methods with logical names, but it would be much nicer to be able to define operators for it instead. |
| ||
No. BlitzMAX does not support operator overloading. I don't understand the other half of your question. Sorry. |
| ||
S'ok, you don't need to. I know how to do it if Blitz doesn't support it. But to clarify for curiosity's sake, the C Class I'm trying to Blitz-ify has operators defined which allow a lot of important operations for the class. Without them, the class would not be worth using. So if I can't overload the operators ( thank you for correcting my terminlogy here, I'm entirely self ( badly ) taught. ) then I will just have to add some extra methods for those operations. |