Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!hc!beta!unm-la!unmvax!turing.UNM.EDU!mike From: mike@turing.UNM.EDU (Michael I. Bushnell) Newsgroups: comp.lang.c Subject: Re: C++ is not an object-oriented language Message-ID: <855@unmvax.unm.edu> Date: 3 Mar 88 01:27:32 GMT References: <719@cresswell.quintus.UUCP> Sender: news@unmvax.unm.edu Reply-To: mike@turing.UNM.EDU.UUCP (Michael I. Bushnell) Organization: University of New Mexico, Albuquerque Lines: 43 Keywords: ANSI C, C++ In article <719@cresswell.quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes: >In article <...>, tub!cabo (Carsten Bormann @ Technical University of Berlin) >> For the uninitiated: C++ is not an ``object-oriented language''. >I'm ever so sorry, the correct term, taken from Stroustrup's book, >is not "object-oriented". I was quite wrong. It is "object-BASED". >Stroustrup says quite explicitly on the first page of the preface >that 'the key concept in C++ is "class".' > *** (my emphasis) >If that doesn't entitle it to the description "object-oriented language", >then Simula, Clascal, and various others aren't object-oriented either. Actually there is a real difference between C++ and real OO languages: in C++ you have to type your variables. Because of this, message overloading isn't nearly as useful. In an object oriented language, just as in a value oriented language, variables are not typed in any way. Another important thing is that in the only fully object oriented language, smalltalk, note that *everything* is an object. Even the classes. In C++ there is no notion of a metaclass. This is also a problem with "Little Smalltalk." Michael I. Bushnell Internet: mike@turing.unm.edu UUCP: mike@turing.unm.edu Bitnet: mike@turing.unm.edu CSnet: mike@turing.unm.edu YourFavoriteNet: mike@turing.unm.edu Golly, don't domains make everything simpler? For peoply who run UUCP but haven't switched over to smail *yet*, you can try {ucbvax,gatech}!unmvax!turing!mike. Or write: {Box 295, Coronado Hall} or {Computer Science, Farris Engineering Center} University of New Mexico Albuquerque, NM 87131 Or call: (505)277- [2992=dorm][6116=work] I work for the CS department. But don't blame them.