Internal workings of Case

BlitzMax Forums/BlitzMax Programming/Internal workings of Case

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.

Could Mark/BR confirm if each Case statement once matched now exits the Select/End Select structure?

In previous versions this wasn't the case (excuse the pun) and each option was replaced with an If - which is slower because each If/Case has to be looked at before reaching End Select.

C++ uses the break command for this - but the nearest command in Blitz is Exit - which exits the whole loop. If it does read all case statements could this optimization be introduced?