home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11217 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.0 KB

  1. Xref: sparky comp.lang.c++:11217 comp.std.c++:889
  2. Newsgroups: comp.lang.c++,comp.std.c++
  3. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!netmbx!jrobie
  4. From: jrobie@netmbx.netmbx.de (Jonathan Robie)
  5. Subject: Re: Language extensions for run-time type identification
  6. Organization: netmbx, Berlin, Germany
  7. Date: Tue, 21 Jul 1992 10:34:36 GMT
  8. Message-ID: <N3A5KQD@netmbx.netmbx.de>
  9. References: <EY048MK@netmbx.netmbx.de> <pathak-200792135100@virtual.mitre.org>
  10. Lines: 47
  11.  
  12. pathak@mitre.org (Heeren Pathak) writes:
  13.  
  14. >In article <EY048MK@netmbx.netmbx.de>, jrobie@netmbx.netmbx.de (Jonathan
  15. >Robie) wrote:
  16. >> 
  17. >> shang@corp.mot.com (David (Lujun) Shang) writes:
  18. >> 
  19. >> >The language should provide run time type checking as well as array bounds  
  20. >> >checking. You can also have a switch to turn off them if you like to.
  21. >> >  
  22. >> 
  23. >> It may be important for compilers to provide such a switch since the
  24. >> memory overhead needed to store type information for all classes can
  25. >> be significant.  Pragmas would be necessary to switch it on and off
  26. >> since you might need it for some classes but not for others....messy,
  27. >> isn't it?
  28. >> 
  29.  
  30. >Why not use MI to provide a "standard" mix-in class that provides run-time
  31. >identification?  
  32.  
  33. I assume you mean that this class would give access to the run-time
  34. identification provided by the compiler, right?  That might make sense,
  35. but I don't like the idea of making the compiler look at the derivation
  36. tree to see whether it should generate run time identification.
  37.  
  38. Obviously, no class is going to be able to generate run time identification
  39. for objects including it or derived from it.  How should it know the
  40. relevant types?
  41.  
  42.  
  43. Jonathan
  44.  
  45. ===========================================================================
  46.  
  47. Jonathan Robie        jrobie@netmbx.UUCP
  48. Arnold-Zweig-Str. 44    jrobie@netmbx.in-berlin.de
  49. O-1100 Berlin        
  50. Deutschland        Phone:  +37 (2) 472 04 19  (Home, East Berlin)
  51.                 +49 (30) 342 30 66 (Work, West Berlin)
  52.  
  53.  
  54. -- 
  55. Jonathan
  56.  
  57. ===========================================================================
  58.  
  59.