home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- 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
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: BP/TP OOP is missing something...
- Message-ID: <dmurdoch.292.722280845@mast.queensu.ca>
- Lines: 23
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <dmurdoch.282.722020256@mast.queensu.ca> <10793@vice.ICO.TEK.COM> <27703@oasys.dt.navy.mil>
- Date: Fri, 20 Nov 1992 17:34:05 GMT
-
- In article <27703@oasys.dt.navy.mil> roth@oasys.dt.navy.mil (Pete Roth) writes:
- >
- >Anyone else have a perceived need for Multiple Inheritance?
- >How did you solve the problem?
-
- I don't like the sparsity of Borland's TObject class. I like to descend
- all of my objects from a base that has more features - the ability to do a
- self-copy and a self-test, a field counting references for the garbage
- collector, etc. I can't fit any existing TV objects into my hierarchy
- without a lot of work.
-
- So far, the way I've solved it is the following: I just don't fit Borland
- objects into my hierarchy. I have a TCollection descendant in there
- with duplicate declarations to my base declarations; an alternative would be
- to have a Base descendant with duplicate declarations to the TCollection
- declarations. I don't use it much, so I can't say which is worse.
-
- I suppose if I started needing collections and collections of collections
- more, this would be a big problem, but so far it's not.
-
-
- Duncan Murdoch
- dmurdoch@mast.queensu.ca
-