Jump tables?

Blitz3D Forums/Blitz3D Programming/Jump tables?

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.

Is there anyway to create a jump table in BB3D?

I know about select case, but I was wondering if it can be done like in C.

You know, get the direct address of functions, store them in an array, and then with a simple bit of math jump to a function indicated by the offset value returned in the math.?

Some basics do something like this using Gosub, but I was wondering if BB3D gave us access to this data? Jump tables are very fast.

I suppose the compile may turn a Select Case into a Jump table also.

Anyway, just a interesting question I had.