Implement Type function elsewhere?
BlitzMax Forums/BlitzMax Beginners Area/Implement Type function elsewhere?
| ||
Can't find this in the docs so ... Can you declare a Type method or function as a one liner with no body and then implement it fully further down in the code thus keeping you types small and neat and easy to read? I ask because you can do this in Delphi and it's very useful. |
| ||
look at Abstract |
| ||
Thanks, I know what abstract does but thats so you can implement the method in a child (extended) class, it doesn't mean you can just have the function outside of the type (but referenced to it) further down in the code does it? |
| ||
As far as I know it's all got to be contained within the type. |
| ||
Ahhh right, you mean forward declarations. No, BMax doesn't support that. |
| ||
never mind thanks anyway. I'm just used to forward declarations that's all. |
| ||
No you can't. You don't need to either, as BlitzMAX doesn't use a single pass compiler. |