home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16592 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.1 KB  |  48 lines

  1. Newsgroups: comp.lang.c++
  2. From: nikki@trmphrst.demon.co.uk (Nikki Locke)
  3. Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
  4. Subject: Re: Should I use a generic object which all others inherit f
  5. Reply-To: nikki@trmphrst.demon.co.uk
  6. Distribution: world
  7. X-Mailer: cppnews $Revision: 1.20 $
  8. Organization: Trumphurst Ltd.
  9. Lines: 34
  10. Date: Thu, 19 Nov 1992 12:24:40 +0000
  11. Message-ID: <722201080snx@trmphrst.demon.co.uk>
  12. Sender: usenet@gate.demon.co.uk
  13.  
  14. In article <1992Nov17.190821.18348@informix.com> cshaver@informix.com (Craig Shaver) writes:
  15. > In article <3762@news.cerf.net> hlf@nic.cerf.net (Howard Ferguson) writes:
  16. > >I am working on the early stages of design on an embedded C++
  17. > >project. One of the decisions which we will have to make in the
  18. > >near future is whether to make all of the objects inherit from 
  19. > >onie generic object at the top of the tree or to go for the forest 
  20. > >approach. 
  21. > An embedded system!  C++!?  JUST USE C!!!!
  22. > UNLESS ....
  23. > You have some of the benefits of OOP in mind, such as inheritance, reuse, 
  24. > and information hiding.  Then if you are willing to take small dings in
  25. > performance go all the way and use the tree approach as pioneered by
  26. > Smalltalk.  I recently saw a review of the toy code that comes with the
  27. > borland compiler.  The article's author commented that the tree type
  28. > libraries were "passe" because of templates.  What a stupid thing to say!
  29. I agree with that author, not with you !
  30.  
  31. > One of the big wins of OOP is reuse.  By using an inheritance structure
  32. > you can reuse existing code and do incremental development.  Related and
  33. > unrelated classes can be used in the same context where a similar protocol
  34. > is enforced.  
  35. > I have to think some of the people involved with C++ have no idea what the
  36. > basis of OOP really is.  They are simply using C++ as an improved C.
  37. True. However, many people involved with C++ have no idea of the 
  38. usefulness of static type checking, the simply pervert C++ to be a faster 
  39. Smalltalk :-)
  40.  
  41. -- 
  42. Nikki Locke,Trumphurst Ltd.(PC and Unix consultancy) nikki@trmphrst.demon.co.uk
  43. trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
  44.