Bug: calling method without ()

If you write method like

void doSomething()
{
..
}

and call it without () like:

doSomething;

it passes the compiler but the method is not being called.

Bug environment: Snow Leopard, Arduino 0017

That's not a bug, that's C.

and call it without () like:

And that's not calling it, that's testing the pointer to the function called "doSomething", and then discarding the result.
It's a good job you didn't define

int doSomething () {
  return someValue;
}

'cos then you'd have had to (void)doSomething; ;D

BTW, this would be classed as a software bug (were it a bug) and not hardware. Wrong part of the forum.

Uups, now I noticed what you mean by wrong place.

Could some moderator move this message (and my other on same area) on "Software"? (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=swbugs)

Sorry about this.

I think you missed AWOL's point: it's not a bug. That's how the C language is supposed to work.