Ashish Kaila wrote:
So if you are coding in C++ do you ensure a level lower than that i.e. assembly is doing the right thing?
Nice example. Watcom C++ does exactly that, and I always love that (back when I was hacking around with VGA VESA modes and and mode-x.)
Ashish Kaila wrote:
Ever heard of separation of concerns in OOP? Guess not
Also a nice example, but less enjoyable things. I guess you mix up "separation of concerns" with "encapsulation of concerns". The first is just a prerequisite (you can't place a platform dependency behind an interface for an exchangable implementation if it is mixed up with other responsibilities). OO doesn't get rid of these nasty parts, it just helps you deal with them. Inside every there's still a printf. When OO was introduced, there was a lot of pressure to "rewrite everything", just so it adheres to "OO standards". Instead of considering possibilities how to fit existing libraries into the new paradigm, they were cast away behind wrappers. I know it's hard and probably not solvable in the general case. But a an attempt, I give you this[^].
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy