Click here to Skip to main content
14,358,698 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
harold aptroot14-Sep-19 6:40
memberharold aptroot14-Sep-19 6:40 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
Night Fox Localhost14-Sep-19 8:16
memberNight Fox Localhost14-Sep-19 8:16 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
Gary R. Wheeler14-Sep-19 10:28
memberGary R. Wheeler14-Sep-19 10:28 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 10:38
memberhoney the codewitch14-Sep-19 10:38 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
Gary R. Wheeler15-Sep-19 2:45
memberGary R. Wheeler15-Sep-19 2:45 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch15-Sep-19 4:37
memberhoney the codewitch15-Sep-19 4:37 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
q1213q14-Sep-19 13:32
memberq1213q14-Sep-19 13:32 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 13:39
memberhoney the codewitch14-Sep-19 13:39 
It was sample code. Normally you'd account for that when you put actual code in there, but without putting anything in there, it's not for me to know where the actual break should happen. However, it was sort of written with the idea that it would follow the main loop logic, kind of like the break example would.

Of course the control flow is slightly different, but it's not irreconcilably different.

if you need something to go after the conditional check, you'd wrap whatever went after the break in the one example in an else block instead.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: for those of you purists that don't like break, continue and goto Pin
q1213q14-Sep-19 13:48
memberq1213q14-Sep-19 13:48 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 13:49
memberhoney the codewitch14-Sep-19 13:49 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
q1213q14-Sep-19 14:07
memberq1213q14-Sep-19 14:07 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 14:11
memberhoney the codewitch14-Sep-19 14:11 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
q1213q14-Sep-19 14:24
memberq1213q14-Sep-19 14:24 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 14:27
memberhoney the codewitch14-Sep-19 14:27 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
q1213q14-Sep-19 14:56
memberq1213q14-Sep-19 14:56 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 15:06
memberhoney the codewitch14-Sep-19 15:06 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
SwitcherSoft15-Sep-19 22:07
memberSwitcherSoft15-Sep-19 22:07 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
t-j@work16-Sep-19 0:19
professionalt-j@work16-Sep-19 0:19 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
maze316-Sep-19 1:43
professionalmaze316-Sep-19 1:43 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
MSBassSinger16-Sep-19 3:44
professionalMSBassSinger16-Sep-19 3:44 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 4:28
memberhoney the codewitch16-Sep-19 4:28 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
obermd16-Sep-19 5:17
memberobermd16-Sep-19 5:17 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 5:51
memberhoney the codewitch16-Sep-19 5:51 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
W Balboos16-Sep-19 5:31
mveW Balboos16-Sep-19 5:31 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 6:20
memberhoney the codewitch16-Sep-19 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.