3 ms·
OS X drivers are "a restricted subset of C++"[1] that restricts you from using Exceptions, Multiple inheritance, Templates, and Runtime type information (RTTI).
by protomyth 13y ago
OS X drivers are "a restricted subset of C++"[1] that restricts you from using Exceptions, Multiple inheritance, Templates, and Runtime type information (RTTI). Also, not all drivers use IOKit.
1) https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Features/Features.html#//apple_ref/doc/uid/TP0000012 https://developer.apple.com/library/mac/documentation/Device...
- pjmlp 13y agoI am fully aware of it, besides "a restricted subset of C++" is still C++.
- protomyth 13y agoWell, not exactly. I/O Kit uses a specification called Embedded C++. It has been heavily criticized by C++ folks and is basically dead at this point.
- pjmlp 13y agoI know Embedded C++. Yes, it is true it wasn't well accepted in the community and never really took off. Still it is a C++ subset, not C, which is what this discussion is all about, regarding the use of C++ in kernel space.