home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6766 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!walter!att-out!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Re: BP/TP OOP is missing something...
  5. Message-ID: <dmurdoch.292.722280845@mast.queensu.ca>
  6. Lines: 23
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University
  9. References: <dmurdoch.282.722020256@mast.queensu.ca> <10793@vice.ICO.TEK.COM> <27703@oasys.dt.navy.mil>
  10. Date: Fri, 20 Nov 1992 17:34:05 GMT
  11.  
  12. In article <27703@oasys.dt.navy.mil> roth@oasys.dt.navy.mil (Pete Roth) writes:
  13. >
  14. >Anyone else have a perceived need for Multiple Inheritance?
  15. >How did you solve the problem?
  16.  
  17. I don't like the sparsity of Borland's TObject class.  I like to descend
  18. all of my objects from a base that has more features - the ability to do a 
  19. self-copy and a self-test, a field counting references for the garbage 
  20. collector, etc.  I can't fit any existing TV objects into my hierarchy 
  21. without a lot of work.
  22.  
  23. So far, the way I've solved it is the following:  I just don't fit Borland 
  24. objects into my hierarchy.  I have a TCollection descendant in there 
  25. with duplicate declarations to my base declarations; an alternative would be 
  26. to have a Base descendant with duplicate declarations to the TCollection 
  27. declarations.  I don't use it much, so I can't say which is worse.
  28.  
  29. I suppose if I started needing collections and collections of collections 
  30. more, this would be a big problem, but so far it's not.
  31.  
  32.  
  33. Duncan Murdoch
  34. dmurdoch@mast.queensu.ca
  35.