3 ms·
Haiku is written in C++ because BeOS 5 was written in C++, using the GCC-2.95 compiler. BeOS used C++ because when it was written, C++ was the new trendy OOP la
by greyfade 14y ago
Haiku is written in C++ because BeOS 5 was written in C++, using the GCC-2.95 compiler. BeOS used C++ because when it was written, C++ was the new trendy OOP language. They use GCC-2.95 because the GCC 2.96 compiler was badly broken and GCC 3.x changed the ABI. The dialect of C++ supported by GCC-2.95 is based on extensions to C++98 that were rather quite buggy. It's a bit of a mess, and I would hardly hold it up as a positive example of C++ in use.
Similarly, Windows was written primarily in C, as it predated C++. Their compiler was extremely buggy and had only partial support of features in C++98, so the vast majority of the code in Windows is C with Classes. (Unless there's been a lot of rewritten code in the last 15 years or so.) Again, not exactly a positive example.