As titled. The following code should cause a compile error.
int f() { return 0; }
void main () {
// -f(); // Error: - has no effect in expression (-f())
+f(); // But this is valid... ?
}
Comment #1 by yebblies — 2012-02-20T07:39:46Z
Why? It does _nothing_ and doesn't survive beyond semantic.
Comment #2 by andrej.mitrovich — 2013-02-04T18:24:35Z