Path: utzoo!attcan!uunet!mcvax!ukc!reading!cf-cm!cybaswan!eeartym From: eeartym@cybaswan.UUCP (Dr R.Artym eleceng ) Newsgroups: comp.lang.c++ Subject: Re: A C++ revelation/question... Message-ID: <67@cybaswan.UUCP> Date: 1 Sep 88 21:52:04 GMT Reply-To: eeartym@cybaswan.UUCP (Dr R.Artym eleceng ) Organization: University College of Swansea Lines: 34 >>C++ is of course an object-oriented language. However, some OOL >>literature makes a subtle distinction between languages that are >>(truly) "object-based" and those that are "type-based." The >> ......... >I dont agree with your terminology ! >Sure, Smalltalk is untyped and enforces encapsulation. This does not >say anything about whether or how a strongly typed language should >enforce encapsulation. Thus the distinction "object based" vs >"type based" is misleading. > Perhaps Anders Bjornerstedt would be a little happier if the two forms of OO were called "object-based" and "class-based". I can see how the term "type-based" would worry a lot of people, largely owing to the fact that types tend to be associated with the way variables are used, whereas here we're talking about visibility within encapsulations (values), and the two are clearly not the same thing. Whatever the terminology, no confusion will result if we keep the word "encapsulation" in there somewhere; eg. "Smalltalk is untyped and object-oriented, with object-based encapsulation" is a lot clearer than "Smalltalk is untyped and type-based" !!! C++ is, of course, typed and optionally object-oriented, with class-based encapsulation. Rich -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keywords: Parallel, Applicative, and Object-Oriented Languages and Systems --------------------------------------------------------------------------- Dr. Richard Artym, + UUCP : ..!ukc!pyr.swan.ac.uk!eeartym Electrical Engineering Dept., + JANET : eeartym@uk.ac.swan.pyr University of Wales, + Phone : [(0792) or (+44 792)] 295536 Swansea, SA2 8PP, + Fax : [(0792) or (+44 792)] 295532 U.K. + Telex : 48358 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~