4 ms·
More to the point, it means the language continues to interpret header files from C libraries the same way that the C compiler always has.
by ncmncm 5y ago
More to the point, it means the language continues to interpret header files from C libraries the same way that the C compiler always has.
- pjmlp 5y agoIt goes both ways, back in CFront days, and when it was picking up steam across MS-DOS, Mac OS, UNIX, among others. Unfortunely it is also an hindrance to fix some issues that prevent C++ to ever embrace safety, or better implementation of static analysers.
- ncmncm 5y agoBoth which ways? C was adopting C++ features before C90. Void type, function prototypes, scoped struct member tags. Declaration syntax is not an impediment to safety or to static analyzers, except insofar as it is trickier to code a parser for them.
- pjmlp 5y agoIt is in the sense that pointers everywhere cannot be prevented and it isn't always easy for a static analyser to actually make sense of how they are being used, as shown at some CppCon talks this year from Microsoft.
- ncmncm 5y agoDeclaration syntax has nothing to do with "pointers everywhere".