News for hackers. Stuff that matters.
Re:Modern C++ for C Programmers: part 5 by dingo_bat on Wednesday July 25, 2018 @11:14PM (#17614820)
> Moreover, the header file is optional, and is never included by the source file.

That is totally opposite to my experience. Example from Linux:

https://github.com/torvalds/linux/blob/master/kernel/smpboot... https://github.com/torvalds/linux/blob/master/kernel/smpboot...

Re:Modern C++ for C Programmers: part 5 by frankzinger on Thursday July 26, 2018 @12:26AM (#17615048)
Yeah. If you don't include the header from the source file you will inevitably end up with differing function signatures in the header and source files because the compiler won't be able to compare the declaration and definition to each other. Such a program may even link.