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.
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.