How to create New array of function pointers?

BlitzMax Forums/BlitzMax Programming/How to create New array of function pointers?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If I understand what you want (and I very well may not), you want to clear the array and the resize it?

If so, can you not just do:
Type MyType
      Field MyFunctions()[]   'Future array of function pointers

      Method New()
            MyFunctions=Null
      End Method

      Method MyMethod()
            MyFunctions=MyFunctions[..0] 'resize to 0 elements
			MyFunctions=MyFunctions[..100] 'resize to 100 elements
      End Method
End Type