What's wrong with this function pointer program?

BlitzMax Forums/BlitzMax Beginners Area/What's wrong with this function pointer program?

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.

Why try to force function pointers into a bank? I would think a bank is 'raw data'.

An array would seem more appropriate.

Function funct1(param:Int)
        Print "You're in function 1, passed counter parameter="+param
End Function

Function funct2(param:Int)
        Print "You're in function 2, passed counter parameter="+param
End Function


Local f(n)[10]  ' f[0] to f[9] are function pointers

f[1] = funct1
f[2] = funct2

f[1](100)
f[2](200)