News for hackers. Stuff that matters.
Re:F() vs. F(void) in C vs. C++ by quietbritishjim on Monday May 13, 2019 @04:56AM (#19897298)
Your idea to use a union of function pointers also allows a much broader range of function parameter types to be used. When you call a function that used a K&R declaration, the arguments are subject to default promotion e.g. short to int, so you can't call "int f(short)" if it is only declared "int f()". Your idea doesn't have this problem.

There are no comments on this comment yet.