On Friday, June 02, 2006 07:25, Mike McCormack wrote:
lack of comments in the code
+1, I think it's horrifying.
void the_function_that_adds_one_to_i(int i) { /* this adds one to i */ i = i + 1;
/* this returns i to the caller */ return i;
}
Horrifying, yes :)
Mike
Particularly horrifying is the return i in a void function! Is there a test for what native does in this case?
- Neil