Missing empty brackets in function call.
-
Another one (this isn't doing my resume much good, is it?) int some_func () { return flag; } if (some_func) { /* Always end up heree */ } The error is missing out the () after some_func in the if condition. Paul
This happens to me with JavaScript.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
-
This happens to me with JavaScript.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
And in Javascript those kind of errors are *much* more difficult to spot, as functions can behave like objects, so you'll get either an [undefined] or [object] return.
Earth.USA.Indiana.People["Storer"]["John"][2].PrintHello("Hi!");