> But, how many operating systems and device drivers are built in C++?
>
> (and yes, before you say something, I know that there are a couple...)

This is unfair.
You very probably know than C++ is not intended to be used for writing
device drivers, and saying this.
C++ is for applications, and I started to talk about SimCoupe.

This is really unfair when you say this.

SimCoupe is typical modular application (CPU, keyboard, disk drive, display,
mouse, ...).
Although modular = "good for C-language", but it would be much better
written in C++.
With classes like "disk image", and interfaces like "mouse" or "display".
This would allow very simple porting, since we can have a predecessor class
display, which would be
derived into several (i.e. 1 or more ;-) classes for particular display
types. (If necessary.)

Also, classes would allow us to quite easily divide program into portable
and system-dependant parts.
(It is already done, but just "a bit", i.e. not 100%.)

(note: Interfaces can be implemented by either classes or namespaces in
C++.)

Aley


Reply via email to