SteveJ schrieb:
...
RegExpressive schrieb:
Es ist ja kein reiner Zufall, daß selbst OS X im Kernel für das IOKit auf C++ setzt und nicht auf Objective-C,
Da bist du schlecht informiert. Das IOKit ist so low-level, dass selbst die Runtime von C++ zu groß ist und ein Subset verwendet wird. Es gibt zum Beispiel keine Exceptions, Multiple inheritance oder Templates - alles Features die hier immer für C++ hervorgehoben werden.
...
Das sogenannte "Subset" von C++ dürfte Embedded C++ sein. Davon ließt man eher selten und ich weiß gar ned, ob es dafür einen Schalter beim GCC oder Clang gibt.
Wenn ich jetzt Wikipedia zitiere
Wikipedia schrieb:
The I/O Kit framework is implemented in a subset of C++ which omits features that Apple feels are unsafe for use in a multithreaded kernel (exceptions, multiple inheritance, templates, run-time type information). Embedded C++ was chosen partly because Apple believed developers would be more comfortable writing drivers in a more commonly used language than Objective-C, while still providing an object-oriented framework allowing device driver developers to focus on coding features specific to their hardware instead of reimplementing features common to any given device.
dann hat sich das mit dem abgespeckten C++ aus einer anderen Richtung her entwickelt. Ob das jetzt wirklich so zutrifft, weiß man nicht, da es dafür keinen Beleg gibt.