Lists of function pointers

BlitzMax Forums/BlitzMax Programming/Lists 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.

Only types and strings are derived from the Object class.

So, casting an int to an object is not possible.

As for function pointers, I don't know but wouldn't count on it. I'd create a container class for them anyways, e.g.:

Type IFunction
     Global _list:TList
     Field func:Int( a, b, c, d )
     Field _link:TLink
     Method New( )
          _link = _list.AddLast( Self )
     End Method
End Type
IFunction._list = New TList