Click here to Skip to main content
15,889,200 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: Would this pass code review where you are? Pin
Richard Deeming8-Oct-20 0:51
mveRichard Deeming8-Oct-20 0:51 
GeneralRe: Would this pass code review where you are? Pin
W Balboos, GHB8-Oct-20 1:08
W Balboos, GHB8-Oct-20 1:08 
GeneralRe: Would this pass code review where you are? PinPopular
Sander Rossel8-Oct-20 1:12
professionalSander Rossel8-Oct-20 1:12 
GeneralRe: Would this pass code review where you are? Pin
raddevus8-Oct-20 4:09
mvaraddevus8-Oct-20 4:09 
GeneralRe: Would this pass code review where you are? Pin
jsc428-Oct-20 6:35
professionaljsc428-Oct-20 6:35 
GeneralRe: Would this pass code review where you are? Pin
jsc428-Oct-20 1:19
professionaljsc428-Oct-20 1:19 
GeneralRe: Would this pass code review where you are? Pin
CPallini8-Oct-20 2:08
mveCPallini8-Oct-20 2:08 
GeneralRe: Would this pass code review where you are? Pin
Fueled By Decaff8-Oct-20 2:15
Fueled By Decaff8-Oct-20 2:15 
First thoughts: It does not look very performant with 4 nested for loops, but it might be necessary, so need more information before commenting any more.

Blink twice thoughts: Nuke that goto. Nuke it from space...

This should not compile in C#.
Wouldn't that have undefined behaviour in C, as the loop variables would not get initialised?

It looks like the code that the goto label refers to is only executed from the goto, so perhaps the goto could be replaced by moving that code into the if statement.

Good luck untangling this code.
JokeRe: Would this pass code review where you are? Pin
DerekT-P8-Oct-20 2:18
professionalDerekT-P8-Oct-20 2:18 
GeneralRe: Would this pass code review where you are? Pin
Jacquers8-Oct-20 2:25
Jacquers8-Oct-20 2:25 
GeneralRe: Would this pass code review where you are? Pin
Pete O'Hanlon8-Oct-20 2:36
mvePete O'Hanlon8-Oct-20 2:36 
GeneralRe: Would this pass code review where you are? Pin
theoldfool8-Oct-20 2:50
professionaltheoldfool8-Oct-20 2:50 
GeneralRe: Would this pass code review where you are? Pin
PIEBALDconsult8-Oct-20 3:45
mvePIEBALDconsult8-Oct-20 3:45 
GeneralRe: Would this pass code review where you are? Pin
Jin Vincent Necesario8-Oct-20 3:47
professionalJin Vincent Necesario8-Oct-20 3:47 
GeneralRe: Would this pass code review where you are? Pin
Mike Hankey8-Oct-20 3:52
mveMike Hankey8-Oct-20 3:52 
GeneralRe: Would this pass code review where you are? Pin
OriginalGriff8-Oct-20 4:03
mveOriginalGriff8-Oct-20 4:03 
GeneralRe: Would this pass code review where you are? Pin
MarkTJohnson8-Oct-20 4:23
professionalMarkTJohnson8-Oct-20 4:23 
GeneralRe: Would this pass code review where you are? Pin
Gary R. Wheeler8-Oct-20 4:48
Gary R. Wheeler8-Oct-20 4:48 
GeneralRe: Would this pass code review where you are? Pin
Randor 8-Oct-20 5:01
professional Randor 8-Oct-20 5:01 
GeneralRe: Would this pass code review where you are? Pin
Rick York8-Oct-20 5:09
mveRick York8-Oct-20 5:09 
GeneralRe: Would this pass code review where you are? Pin
Gerry Schmitz8-Oct-20 6:20
mveGerry Schmitz8-Oct-20 6:20 
GeneralRe: Would this pass code review where you are? Pin
Davyd McColl8-Oct-20 21:18
Davyd McColl8-Oct-20 21:18 
GeneralRe: Would this pass code review where you are? Pin
Martin ISDN8-Oct-20 22:19
Martin ISDN8-Oct-20 22:19 
GeneralRe: Would this pass code review where you are? Pin
Myron Dombrowski9-Oct-20 4:59
Myron Dombrowski9-Oct-20 4:59 
GeneralRe: Would this pass code review where you are? Pin
Bruce Patin9-Oct-20 6:01
Bruce Patin9-Oct-20 6:01 

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.