Pointer to function...

BlitzMax Forums/BlitzMax Programming/Pointer to function...

yes exactly like that and good different examples too, thanks :-). All I needed to know was () then, cool as I've done this before in Delphi and C++.

I also thought of a way to do it with objects whilst making some soup. Make a TFunction object with the a function called Func. Then you can extended TFunction (e.g. MyTFunction) and fill in your own Func by overriding the base one (unless params differ) and then your Test type can call MyTFunction.func() which will work polymorphically. However, this seems a tad lame compared to the direct method above...