From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,97482af7429a6a62 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,97482af7429a6a62 X-Google-Attributes: gid103376,public X-Google-Thread: 10d15b,97482af7429a6a62 X-Google-Attributes: gid10d15b,public From: matt@physics2.berkeley.edu (Matt Austern) Subject: Re: C++ not OOP? (Was: Language Efficiency Date: 1995/04/21 Message-ID: #1/1 X-Deja-AN: 101369066 references: <3n0uvi$8jt@atlantis.utmb.edu> organization: Lawrence Berkeley Laboratory (Theoretical Physics Group) reply-to: matt@physics.berkeley.edu newsgroups: comp.lang.c++,comp.lang.ada,comp.lang.cobol Date: 1995-04-21T00:00:00+00:00 List-Id: In article <1995Apr21.190040.7332@rcmcon.com> rmartin@rcmcon.com (Robert Martin) writes: > What these arguments do not do, is what Grady did above. He defined > the term. > > As it happens, I don't much care for Grady's definition. For one > thing, I don't understand the benefit of 'purity' as he describes it. What's really interesting is that the definition Curtis quoted isn't the same as the one he's (implicitly) using! The definition he's using is that a "pure" OOL is one in which it's impossible to define functions that don't belong to objects. The one he quoted, though, is that a "pure" OOL is one in which everything is an object. I agree that "pure" is a loaded word and that we should stop using it. However, I do see the benefits of having a language where classes and basic built-in types and operating system resources are objects; languages like that make it much easier to treat things consistently. A well-designed class hierarchy that includes the basic types and that's rooted in some class like Object or ANY can sometimes be quite useful. It's not foolish to make a distinction between languages that have that sort of hierarchy and that have a base class from which all classes inherit, and languages that don't. "Pure" is probably the wrong word to use for that distinction; can anyone suggest a better? -- Matt Austern matt@physics.berkeley.edu http://dogbert.lbl.gov/~matt