Hacker News new | ask | show | jobs
by cesarb 4220 days ago
Hm. This is the kind of thing where a compiler warning could be useful. I took a quick look at gcc's manual, but it does not seem to have a warning for this particular mistake (argument names do not match between declaration and definition).

That way, you could repeat yourself safely, since the repetition would be checked by the compiler.

1 comments

I did a quick -Wall test with gcc 4.4.5 and it doesn't warn.