home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13099 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!stanford.edu!rock!concert!uvaarpa!murdoch!virginia.edu!gs4t
  3. From: gs4t@virginia.edu (Gnanasekaran Swaminathan)
  4. Subject: Re: Explicit Calls to Destructors (SunCC=ok, gcc=not)
  5. Message-ID: <1992Aug31.163859.10272@murdoch.acc.Virginia.EDU>
  6. Keywords: destructors
  7. Sender: usenet@murdoch.acc.Virginia.EDU
  8. Reply-To: gs4t@virginia.edu (Gnanasekaran Swaminathan)
  9. Organization: University of Virginia
  10. References:  <2234@h.cs.wvu.wvnet.edu>
  11. Date: Mon, 31 Aug 1992 16:38:59 GMT
  12. Lines: 18
  13.  
  14. schiebel@cs.wvu.wvnet.edu (Darrell Schiebel) writes:
  15. |> 
  16. |>     In the Sun (SC1.0 w/ cfront 2.1 (I think)), an explicit call
  17. |>     to a class' destructor from within a one of the class' member
  18. |>     functions works:
  19. |> 
  20. |>     void Tess::cleanup(Bool abort) {
  21. |>       Tess::~Tess();
  22. |>         }
  23. |> 
  24. |>     However, in gcc-2.2.2 this does not work, and gives the error:
  25.  
  26. You have tried everything except the one that works in gcc:
  27.  
  28.     this->Tess::~Tess();
  29.  
  30. -Sekar
  31.     
  32.