3 ms·
A significant portion of the C++ code in Windows uses very few C++ features or idioms and is basically C with classes or one or two useful features.
by marcoperaza 7y ago
A significant portion of the C++ code in Windows uses very few C++ features or idioms and is basically C with classes or one or two useful features.
- pjmlp 7y agoWhich is still C++.
- marcoperaza 7y agoAbsolutely, but that kind of code doesn’t really speak to complaints about modern C++ and all it’s become. I just wanted to chime in with that extra information. I don’t really have a dog in the fight, other than having a lot of love for C and good C code.
- rleigh 7y agoIt is, but I do wonder if a large part of the problem with regard to using C++ features on Windows is the poor support for it in the ancient COFF linker and binary format they support. Lots of stuff like template export is possible with ELF which is impossible or dangerous on Windows.
- marcoperaza 7y agoI can also attest that lots of “modern C++” code exists in Windows. There is code in Windows that was written yesterday and code in Windows that was written over three decades ago.
- pjmlp 7y agoCOM/UWP is the proper way to use C++ features on Windows in a inter-language way. While not ideal exporting templates has been possible since Windows 3.1 days, as long as one sticks to a specific compiler.
- gpderetta 7y agoThat's impossible. According to half of the comments in every c++ thread on HN, any usage of C++ will immediately converge to using all features!! /s obviously.