Click here to Skip to main content
15,896,063 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: VS2017... :doh: Pin
megaadam6-Feb-19 2:22
professionalmegaadam6-Feb-19 2:22 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 2:40
protectorNelek6-Feb-19 2:40 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 2:50
protectorNelek6-Feb-19 2:50 
GeneralRe: VS2017... :doh: Pin
megaadam6-Feb-19 3:00
professionalmegaadam6-Feb-19 3:00 
GeneralRe: VS2017... :doh: Pin
Rick York6-Feb-19 4:36
mveRick York6-Feb-19 4:36 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 10:24
protectorNelek6-Feb-19 10:24 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 10:27
protectorNelek6-Feb-19 10:27 
GeneralRe: :doh: Pin
CPallini6-Feb-19 3:20
mveCPallini6-Feb-19 3:20 
Quote:
// a bit of stuff for the test
function01 ();//line XXX
// not much more

You omitted possibly important stuff.

if it is something like
C++
void foo()
{
  function01 ();//line XXX
}

then it is a function call, you are right and the compiler is wrong.

On the other hand, if
C++
function01 ();//line XXX
stays freely outside a function definition then it is interpreted (actually compiled Smile | :) ) as function declaration, therefore megaadam remarks apply and you are wrong.
GeneralRe: :doh: Pin
Nelek6-Feb-19 10:29
protectorNelek6-Feb-19 10:29 
GeneralRe: :doh: Pin
Kornfeld Eliyahu Peter6-Feb-19 4:02
professionalKornfeld Eliyahu Peter6-Feb-19 4:02 
GeneralRe: :doh: Pin
Nelek6-Feb-19 10:33
protectorNelek6-Feb-19 10:33 
GeneralI was sent this, and... Pin
OriginalGriff5-Feb-19 22:26
mveOriginalGriff5-Feb-19 22:26 
GeneralRe: I was sent this, and... Pin
megaadam5-Feb-19 22:31
professionalmegaadam5-Feb-19 22:31 
GeneralRe: I was sent this, and... Pin
Herman<T>.Instance5-Feb-19 22:33
Herman<T>.Instance5-Feb-19 22:33 
GeneralRe: I was sent this, and... Pin
MacSpudster6-Feb-19 4:12
professionalMacSpudster6-Feb-19 4:12 
GeneralRe: I was sent this, and... Pin
DRHuff6-Feb-19 6:49
DRHuff6-Feb-19 6:49 
GeneralWSO CCC - Feb 06 Pin
Agent__0075-Feb-19 22:15
professionalAgent__0075-Feb-19 22:15 
GeneralRe: WSO CCC - Feb 06 Pin
super6-Feb-19 1:53
professionalsuper6-Feb-19 1:53 
GeneralRe: WSO CCC - Feb 06 Pin
pkfox6-Feb-19 3:10
professionalpkfox6-Feb-19 3:10 
GeneralRe: WSO CCC - Feb 06 Pin
OriginalGriff6-Feb-19 3:36
mveOriginalGriff6-Feb-19 3:36 
GeneralRe: WSO CCC - Feb 06 Pin
Pete O'Hanlon6-Feb-19 22:12
mvePete O'Hanlon6-Feb-19 22:12 
GeneralRe: WSO CCC - Feb 06 Pin
pkfox6-Feb-19 22:31
professionalpkfox6-Feb-19 22:31 
GeneralRe: WSO CCC - Feb 06 Pin
PeejayAdams6-Feb-19 23:24
PeejayAdams6-Feb-19 23:24 
GeneralRe: WSO CCC - Feb 06 Pin
pkfox6-Feb-19 23:34
professionalpkfox6-Feb-19 23:34 
GeneralThat's not a cyborg... Pin
OriginalGriff5-Feb-19 20:22
mveOriginalGriff5-Feb-19 20:22 

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.