home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / object / 4682 < prev    next >
Encoding:
Text File  |  1992-12-31  |  3.8 KB  |  90 lines

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!minnie!beckmann
  3. From: beckmann@Informatik.Mathematik.Uni-Mainz.DE (Markus Beckmann)
  4. Subject: Re: A Pre-Release FAQ
  5. Message-ID: <37B01UW@minnie.zdv.uni-mainz.de>
  6. Sender: beckmann@Informatik (Markus Beckmann)
  7. Nntp-Posting-Host: troja.mathematik.uni-mainz.de
  8. Organization: Computer Science, Johannes Gutenberg-Universitaet
  9. References: <1992Dec29.042355.10967@netcom.com> <PCG.92Dec29203617@decb.aber.ac.uk>
  10. Date: Thu, 31 Dec 1992 10:49:41 GMT
  11. Lines: 77
  12.  
  13.  
  14.  
  15. In article <PCG.92Dec29203617@decb.aber.ac.uk>, pcg@aber.ac.uk 
  16.    (Piercarlo Grandi) writes:
  17.  
  18. |> A point of order too: a FAQ should not be about the FAQ author's
  19. |> opinions; the FAQ should only be a list of facts...
  20.  
  21. |>   Are you so incredibly sure that the type of an object and its class
  22. |>   are the one and same concept, such that 'type' and 'class' are just
  23. |>   synonyms?
  24.  
  25. A list of facts:
  26.  
  27. Booch ('OOD with applications', p.59)
  28.    "The concept of a type derives primarily from the theories 
  29.    of abstract data types. ... For our purposes, we will use 
  30.    the terms type and class interchangeably.(/footnote A type 
  31.    and a class are not exactly the same thing; some languages 
  32.    actually distinguish these two concepts. ... 
  33.    Even in Smalltalk, objects of the classes SmallInteger, 
  34.    LargeNegativeInteger, and LargePositiveInteger are all of
  35.    the same type, Integer, although not of the same class. For
  36.    most mortals, however, separating the concepts of type and
  37.    class is utterly confusing and adds very little value. It 
  38.    is sufficient to say that a class implements a type.) 
  39.    Although the concepts of a type and a class are similar, we
  40.    include typing as a separate element of the object model..."
  41.  
  42. ... and an other one for the mortals...
  43.  
  44. B. Meyer ('OO Software Construction',p.61)
  45.    "Level 4 (Classes): Every non-simple type is a module, and
  46.    every high-level module is a type. ...
  47.    A language construct combining the module and type aspects 
  48.    is called a class."
  49. dto. (p.72)
  50.    "There are no other objects than class instances: any object
  51.    is an instance of some class C. C is said to be the _type_ 
  52.    of the object."
  53.  
  54. B. Stroustrup ('What is "Object-Oriented Programming"', article)
  55.    "The declaration of class (that is, user defined type)..."
  56.  
  57. B. Cox ('OOP - An Evolutionary Approach', p.65)
  58.    "... 'Betsy is a cow' is just a short way of saying 'Betsy is
  59.    an instance of class cow.' In programming the same concept is
  60.    often called type. ...
  61.    The languages that support a fixed list of built-in classes 
  62.    tend to use the word type, while those that allow the pro-
  63.    grammer to define his own types favor the word class."
  64.  
  65. S. Khoshafian ('Object Orientation', p.49)
  66.    "A class incorporates the definition of the structure as well
  67.    as the operations of the abstract data type. Thus, a class 
  68.    defines an abstract data type."
  69.  
  70. |>              This would be amazing news to most of the people who have
  71. |>   been working on formal methods and OO systems.
  72.  
  73. Are the above books exotic?
  74.  
  75. I think a FAQ should not discuss 'all' the aspects of different 
  76. definitions but give an overview of what all the posting is about.
  77. Otherwise every article should have a preface like "I use objects
  78. of Grandi-type (or class? ;-), I am talking about Hathaway-Classes...".
  79.  
  80. So IMO the Pre-Release FAQ works quite well so far. Maybe the questions
  81. should be of the form "What is meant by xxx (in this group)?" instead
  82. of "What is a xxx?".
  83.  
  84. -------------------------------+-------------------------------------------
  85. Markus A. Beckmann             |E-Mail:
  86. Johannes Gutenberg-Universitaet|beckmann@informatik.mathematik.uni-mainz.de
  87. Institut fuer Informatik       |
  88. D W-6500 Mainz                 |
  89. -------------------------------+-------------------------------------------
  90.