Wolfgang Draxinger <[EMAIL PROTECTED]> writes: > Sherman Pendley wrote: > >> "Lorenzo Villari" <[EMAIL PROTECTED]> writes: >> >>> I'm maybe wrong, but I was under the impression that for >>> Firefox they use gtk+, which is written in C... >> >> Gtk+ is indeed written in C, but it's object-oriented > > And?! > > Coding something in C doesn't mean you must abandon using OOP > methods. It just means, that things are going to be a bit more > verbose (i.e. you've to maintain everything yourself).
Well, message passing, the fundamental defining characteristic of OOP (I mean, this is what made Smalltalk revolutionary with regard to programming techniques and gave it its name) requires you to switch sustained execution contexts, basically switching to a different stack, eveery object having its own control flow. Synchronous multithreading or whatever you want to call it. That's what OO is actually about. The in-memory and synchronous in-process equivalent to separate applications with separate control flow talking to one another via pipes. Of course, C++ does not have it either. When it laid claim to the buzzphrase OO, its reference implementation Cfront could not map this aspect to C, and so one implemented and declared a humongous wagonload of other features to befuddle detractors and turn them away in disgust before they noticed the missing essential detail. The Cfront language design inheritage indeed means that for the most part, you can't do anything in C++ that is not fundamentally accessible in C. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ gnu-misc-discuss mailing list gnu-misc-discuss@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-misc-discuss