I know that switch / select switch automatically interrupted after each case. I am wondering in the following code:
for { switch sometest() { case 0: dosomething() case 1: break default: dosomethingelse() } }
Does the break statement break a for loop, or just a switch block?
select switch-statement go break
Matt Jun 19 '12 at 15:16 2012-06-19 15:16
source share