Click here to Skip to main content
15,797,167 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: Semicolon at the end of a comment line. Pin
DrWalter PE12-Apr-23 7:43
professionalDrWalter PE12-Apr-23 7:43 
GeneralRe: Semicolon at the end of a comment line. Pin
jeron112-Apr-23 7:52
jeron112-Apr-23 7:52 
GeneralRe: Semicolon at the end of a comment line. Pin
honey the codewitch12-Apr-23 5:48
mvahoney the codewitch12-Apr-23 5:48 
GeneralRe: Semicolon at the end of a comment line. Pin
Single Step Debugger12-Apr-23 6:14
Single Step Debugger12-Apr-23 6:14 
GeneralRe: Semicolon at the end of a comment line. Pin
Mircea Neacsu12-Apr-23 6:26
Mircea Neacsu12-Apr-23 6:26 
GeneralRe: Semicolon at the end of a comment line. Pin
englebart12-Apr-23 16:28
professionalenglebart12-Apr-23 16:28 
GeneralRe: Semicolon at the end of a comment line. Pin
honey the codewitch12-Apr-23 17:06
mvahoney the codewitch12-Apr-23 17:06 
JokeRe: Semicolon at the end of a comment line. Pin
englebart12-Apr-23 18:02
professionalenglebart12-Apr-23 18:02 
At least it is a syntax error. That is a scenario where you can ask the editor to re-format for you and then compare with pre-format to see what shifted/indented unexpectedly.

Like you said, the indentation will trick you into not noticing the missing {.

The one that bit me was
if ()

  // do foo

  foo();

and I added prefoo(); ahead of foo(); without adding braces.

“It was a setup, I tell you, wiseguy”
GeneralRe: Semicolon at the end of a comment line. Pin
Wizard of Sleeves12-Apr-23 22:38
Wizard of Sleeves12-Apr-23 22:38 
GeneralRe: Semicolon at the end of a comment line. Pin
honey the codewitch13-Apr-23 0:37
mvahoney the codewitch13-Apr-23 0:37 
GeneralRe: Semicolon at the end of a comment line. Pin
JohnDG5213-Apr-23 3:42
JohnDG5213-Apr-23 3:42 
GeneralMessage Closed Pin
12-Apr-23 7:29
professionalDrWalter PE12-Apr-23 7:29 
GeneralRe: Semicolon at the end of a comment line. Pin
Peter Adam13-Apr-23 7:05
professionalPeter Adam13-Apr-23 7:05 
GeneralRe: Semicolon at the end of a comment line. Pin
dandy7213-Apr-23 8:00
dandy7213-Apr-23 8:00 
GeneralRe: Semicolon at the end of a comment line. Pin
Single Step Debugger13-Apr-23 8:15
Single Step Debugger13-Apr-23 8:15 
GeneralRe: Semicolon at the end of a comment line. Pin
dandy7214-Apr-23 4:57
dandy7214-Apr-23 4:57 
GeneralRe: Semicolon at the end of a comment line. Pin
trønderen13-Apr-23 9:02
trønderen13-Apr-23 9:02 
GeneralRe: Semicolon at the end of a comment line. Pin
Single Step Debugger17-Apr-23 4:10
Single Step Debugger17-Apr-23 4:10 
GeneralRe: Semicolon at the end of a comment line. Pin
trønderen17-Apr-23 7:45
trønderen17-Apr-23 7:45 
GeneralRe: Semicolon at the end of a comment line. Pin
Single Step Debugger17-Apr-23 8:18
Single Step Debugger17-Apr-23 8:18 
GeneralRe: Semicolon at the end of a comment line. Pin
trønderen17-Apr-23 9:54
trønderen17-Apr-23 9:54 
GeneralRe: Semicolon at the end of a comment line. Pin
Alister Morton13-Apr-23 23:45
Alister Morton13-Apr-23 23:45 
GeneralRe: Semicolon at the end of a comment line. Pin
WPerkins13-Apr-23 3:50
WPerkins13-Apr-23 3:50 
GeneralHello, has Windows under gone a change... Pin
glennPattonWork312-Apr-23 0:13
professionalglennPattonWork312-Apr-23 0:13 
GeneralRe: Hello, has Windows under gone a change... Pin
RainHat12-Apr-23 2:23
RainHat12-Apr-23 2:23 

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.