home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!olivea!gossip.pyramid.com!pyramid!infmx!cshaver
- From: cshaver@informix.com (Craig Shaver)
- Newsgroups: comp.lang.c++
- Subject: Re: Should I use a generic object which all others inherit from
- Message-ID: <1992Nov20.234258.29404@informix.com>
- Date: 20 Nov 92 23:42:58 GMT
- References: <1992Nov19.165529.23862@informix.com> <5242@holden.lulea.trab.se>
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 35
-
- In article <5242@holden.lulea.trab.se> jbn@lulea.trab.se (Johan Bengtsson) writes:
- >: ....... blah blah blah
- >:
- >: YourObject is worthless, just use MyObject....
- >
- >Yes, but from my point of view... (:-)
- >
- Let me think this about that ......
- >
- >: ........ blah blah blah
- >: >Once a reference to an object has been passed as a generic
- >: >object reference, for example into a collection, how do you (safely)
- >: >call the actual methods of the objects (derived) class?
- >
- >You didn't answer on that one...
- >
- Looked obvious to me! Close your eyes and hope for the best.
- The base class should have something for " Not Implemented Here " or
- !No Habla Espanol! to catch that. This is a problem with all
- static lingo's; no fallback or easy way to back out of the stack.
- Just go BOOM!!!
-
- I don't think this is a big show stopper. Similar to array bounds
- checking.
-
- >--
- >--------------------------------------------------------------------------
- >| Johan Bengtsson, Telia Research AB, Aurorum 6, S-951 75 Lulea, Sweden |
- >| Johan.Bengtsson@lulea.trab.se; Voice:(+46)92075471; Fax:(+46)92075490 |
- >--------------------------------------------------------------------------
-
- Kraig at Korporate Kontrol
- --
- Craig Shaver (cshaver@informix.com for now) (415)390-0654 (415)926-6407
- Productivity Group POB 60458 Sunnyvale, CA 94088
-