Not sure what you mean. "Break" must stay and do what it always did, leave the control structure entirely if its case fires. Do you mean if one has a mixed string of cases, with "break" and "continue" sprinkled throughout?wouldn't the lack of 'break' break the fall-through from case to case
In that case the different gadgetry would have to be carefully ordered, and much of the mindlessness would be lost.
I like the idea of an entirely new structure, that only allows "continue", even if that word is now superfluous, and need not be included at all:
Code: Select all
selectcase
case 1 = 1
add 1 to accum
case 2 = 3
add 1 to accum
case 2 = 2
add 1 to accum
This is not the same as a switch structure without "break"
Code: Select all
switch
case 1 = 1
add 1 to accum
case 2 = 3
add 1 to accum
case 2 = 2
add 1 to accum
end switch
Craig