home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19778 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.5 KB  |  63 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
  3. From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
  4. Subject: Re: Why is C++ not considered a true OOL?
  5. Message-ID: <1993Jan22.194724.22151@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: MAXTAL P/L C/- University Computing Centre, Sydney
  9. References: <19JAN199315162645@trentu.ca> <51571@shamash.cdc.com> <1993Jan21.034840.11361@syacus.acus.oz.au>
  10. Date: Fri, 22 Jan 1993 19:47:24 GMT
  11. Lines: 50
  12.  
  13. In article <1993Jan21.034840.11361@syacus.acus.oz.au> ian@syacus.acus.oz.au (Ian Joyner) writes:
  14.  
  15. >A good language will 'help' you write good programs, especially where a
  16. >team of a number of people are concerned. OOP helps organise a project
  17. >somewhat, and C++'s OO features are a help in this way. However, since
  18. >it is based on C it is less of a help than could be desired from a
  19. >purer OOL.
  20. >
  21. >Some people see pure OOLs as restrictive. 
  22.  
  23.     Especially if they favour writing some programs
  24. using an ADT approach rather than an OO one.
  25.  
  26.     C++ lack of restrictions may be seen as an advantage then.
  27. It saves swapping languages for different types of project.
  28. This enables reuse of existing codes.
  29.  
  30. >But it is rather like having
  31. >a traffic system that has a rule that you drive down one side of a road.
  32. >It might seem restrictive if you are on an empty road, but in a busy
  33. >street, it makes it possible to get to where you are going. I am not
  34. >really convinced of the power of C++ over other languages, but with
  35. >it you can certainly drive in all sorts of directions, and this does
  36. >not necessarily help in the economic production of quality software.
  37.  
  38.     It is certainly true that if you mix your idioms
  39. in C++ you get a mess. However, writing consistent
  40. programs using one of the many styles supported by C++
  41. is possible, it just takes extra learning.
  42.  
  43.     perhaps, C++ lets you catch an ADT train or 
  44. even walk the C street, rather than trying to drive
  45. through an OO traffic jam :-)
  46.  
  47.     Besides, there are different "OO" styles,
  48. and the difference between say Object heirarchy
  49. based programming with dynamic downcasts, and
  50. mixin style using abstract virtual bases and
  51. multiple inheritance are probably so great
  52. that it is hard to think of both as the same OO.
  53. C++ allows both.  A "pure" OOPL probably could not.
  54.  
  55.  
  56.  
  57.  
  58. -- 
  59. ;----------------------------------------------------------------------
  60.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  61.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  62. ;------ SCIENTIFIC AND ENGINEERING SOFTWARE ---ph:  2 799 8223 --------
  63.