Implement Type function elsewhere?

BlitzMax Forums/BlitzMax Beginners Area/Implement Type function elsewhere?

Grey Alien(Posted 2005) [#1]
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.


Perturbatio(Posted 2005) [#2]
look at Abstract


Grey Alien(Posted 2005) [#3]
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?


TartanTangerine (was Indiepath)(Posted 2005) [#4]
As far as I know it's all got to be contained within the type.


Perturbatio(Posted 2005) [#5]
Ahhh right, you mean forward declarations. No, BMax doesn't support that.


Grey Alien(Posted 2005) [#6]
never mind thanks anyway. I'm just used to forward declarations that's all.


FlameDuck(Posted 2005) [#7]
No you can't. You don't need to either, as BlitzMAX doesn't use a single pass compiler.