home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / std / cplus / 1984 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.1 KB  |  23 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!usc!cs.utexas.edu!swrinde!gatech!udel!rochester!rit!cci632!dwr
  3. From: dwr@cci632.cci.com (Donald W. Rouse II)
  4. Subject: Re: Compiler should generate virtual destructors
  5. Message-ID: <1993Jan6.191259.20436@cci632.cci.com>
  6. Organization: [Computer Consoles, Inc., Rochester, NY
  7. References: <1992Dec31.050150.28929@ucc.su.OZ.AU> <lkc2k7INNajv@exodus.Eng.Sun.COM>
  8. Date: Wed, 6 Jan 1993 19:12:59 GMT
  9. Lines: 12
  10.  
  11. In article <lkc2k7INNajv@exodus.Eng.Sun.COM> db@argon.Eng.Sun.COM (David Brownell) writes:
  12. >   (2a)    C++ compilers don't automagically generate ANYTHING for classes
  13. >    any more:  constructors, destructors, assignment and address-of
  14. >    operators, etc.  If such routines are used but not declared and
  15. >    defined, that is an error.
  16. >
  17.  
  18. The problem with this is that struct == class with all members public.
  19. This would break much C code.
  20. Better would be for the compiler not to generate default stuff
  21. if _any_ constructor or destructor (or op=) is declared for a class;
  22. elsewise, generate if nec.
  23.