home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16684 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.8 KB

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