Click here to Skip to main content
15,913,939 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 5:40
harold aptroot14-Sep-19 5:40 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
Night Fox Localhost14-Sep-19 7:16
Night Fox Localhost14-Sep-19 7:16 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
Gary R. Wheeler14-Sep-19 9:28
Gary R. Wheeler14-Sep-19 9:28 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 9:38
mvahoney the codewitch14-Sep-19 9:38 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
Gary R. Wheeler15-Sep-19 1:45
Gary R. Wheeler15-Sep-19 1:45 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch15-Sep-19 3:37
mvahoney the codewitch15-Sep-19 3:37 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
User 483504714-Sep-19 12:32
User 483504714-Sep-19 12:32 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 12:39
mvahoney the codewitch14-Sep-19 12: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
User 483504714-Sep-19 12:48
User 483504714-Sep-19 12:48 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 12:49
mvahoney the codewitch14-Sep-19 12:49 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
User 483504714-Sep-19 13:07
User 483504714-Sep-19 13:07 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 13:11
mvahoney the codewitch14-Sep-19 13:11 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
User 483504714-Sep-19 13:24
User 483504714-Sep-19 13:24 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 13:27
mvahoney the codewitch14-Sep-19 13:27 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
User 483504714-Sep-19 13:56
User 483504714-Sep-19 13:56 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch14-Sep-19 14:06
mvahoney the codewitch14-Sep-19 14:06 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
SwitcherSoft15-Sep-19 21:07
SwitcherSoft15-Sep-19 21:07 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
t-j@home15-Sep-19 23:19
professionalt-j@home15-Sep-19 23:19 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
maze316-Sep-19 0:43
professionalmaze316-Sep-19 0:43 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
MSBassSinger16-Sep-19 2:44
professionalMSBassSinger16-Sep-19 2:44 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 3:28
mvahoney the codewitch16-Sep-19 3:28 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
obermd16-Sep-19 4:17
obermd16-Sep-19 4:17 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 4:51
mvahoney the codewitch16-Sep-19 4:51 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
W Balboos, GHB16-Sep-19 4:31
W Balboos, GHB16-Sep-19 4:31 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 5:20
mvahoney the codewitch16-Sep-19 5: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.