Latest OxygenBasic.zip at GitHub (Click on the Wizard)
0 Members and 2 Guests are viewing this topic.
Interestingly, FreeBasic can use computed gotos for select case statements:From the FreeBasic documentation:Select Case As Const integer_expression[ Case constant | enumeration ][ statements ][ Case Else ][ statements ]End SelectIf As Const is used, only integer constants (all numeric constants excluding the two floating-point constants: single and double) can be evaluated and the expression list supports simple constants and enumerations only. "To" ranges are supported, but "Is" relational operators are not.With As Const, a jump table is created to contain the full range of integer Cases handled. This allows Select Case As Const to be faster than Select Case. However, the size of the range of values is limited, and the largest value in the range may be no higher than the smallest value + 4096.Kind of neat I think!