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

  1. Xref: sparky comp.lang.c++:11710 comp.std.c++:985
  2. Newsgroups: comp.lang.c++,comp.std.c++
  3. Path: sparky!uunet!mole-end!mat
  4. From: mat@uunet.uu.net!mole-end
  5. Subject: Re: Language extensions for run-time type identification
  6. Message-ID: <1992Jul28.094428.15393@uunet.uu.net!mole-end>
  7. Summary: Once more, dear fellows, into the breach
  8. Organization: :
  9. References: <1992Jul26.014223.6153@uunet.uu.net!mole-end> <1992Jul27.173614.8320@cadsun.corp.mot.com>
  10. Date: Tue, 28 Jul 1992 09:44:28 GMT
  11. Lines: 41
  12.  
  13. In article <1992Jul27.173614.8320@cadsun.corp.mot.com>, shang@corp.mot.com (David (Lujun) Shang) writes:
  14. > In article <1992Jul26.014223.6153@uunet.uu.net!mole-end>  
  15. > mat@uunet.uu.net!mole-end writes:
  16.  
  17. > >     Derivation is only useful when used properly with virtualization.
  18. > I disagree. Without virtualization, derivation is still useful in code reuse.  
  19. Usable, but unsafe.
  20.  
  21. > Virtualizaton only makes derivation more powerful in express polymorphism.
  22. > >     Virtualization is only meaningful in the context of derivation.
  23. > I disagree.  Virtualization actually is a kind of specialization. In
  24. > addition to virtual functions, we can also have vitual types and virtual
  25. > constants. ...
  26.  
  27. This is comp.{lang,std}.c++, not comp.object.  Your paragraph does not
  28. describe C++; it does not describe something that is C++ + <delta> .  (In
  29. comp.object, this might be an interesting journey upon which to embark.)
  30.  
  31. > >     Only derivation can make use of RTTI.
  32.  
  33. > I disagree. Derivation needs RTTI does not mean that only derivation needs  
  34. > RTTI. Parameterization needs RTTI too (of cause, it is not the C++ template).
  35.  
  36. RTTI is only needed when an object can have an apparent type and an actual
  37. type.  In C++, that requires derivation.  Again, these groups talk about
  38. C++ and sometimes about stuff within a <delta> radius of C++.  I believe
  39. you are beyond that <delta>.
  40.  
  41. > >   therefore
  42. > >     RTTI is only useful in the presence of virtualization.
  43. > Since I agree to none of the assumptions, I cannot agree to the conclusion  
  44. > either.
  45.  
  46. Not even in the context of C++?
  47.  
  48. Two is not equal to three, not even for large values of two.  (Grabel's Law)
  49. -- 
  50.  (This man's opinions are his own.)
  51.  From mole-end                Mark Terribile
  52.  
  53.  uunet!mole-end!mat, Somewhere in Matawan, NJ
  54.