N
Nick Keighley
I'm working on a program that can be built either with a C or C++ compiler.
Most of the time I forget about this, losing my awareness of "this has tobe
valid C++ too", and I neglect to build it as C++ for weeks or months.
Yet, the C++ port very rarely breaks and is easy to fix.
I just tried a C++ build: zero warnings! According to the ChangeLog, the last
time I did C++-related maintenance was on Oct 2, which was 131 commits ago. So
did 131 commits to a C program without caring that it's also C++, yet it still
compiles cleanly as C++.
C++ is a very close dialect of C, and can easily be treated as another porting
target for a C program.
"the C subset of C++ is a very close dialect of C..."