Accepted answer for which log line won't build

Hey @ben ! The mid topic quiz, for question 9, it asks which log example line will not compile. The accepted answer was the one with only one far right bracket, instead of two. Nay nay, I say! All lines, except the one line with the terminating semicolon will not build… as they don’t have a terminating semicolon! :slight_smile:

It’s a macro, semicolon not needed.

Arrrrg…sorry, you are correct. So what’s the result of my extra semicolon? Just some stray line terminator floating around in my code after the macro expands?

I guess, though I’m sure compilers would just ignore it.

Privacy & Terms