home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- 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
- From: gs4t@virginia.edu (Gnanasekaran Swaminathan)
- Subject: Re: Explicit Calls to Destructors (SunCC=ok, gcc=not)
- Message-ID: <1992Aug31.163859.10272@murdoch.acc.Virginia.EDU>
- Keywords: destructors
- Sender: usenet@murdoch.acc.Virginia.EDU
- Reply-To: gs4t@virginia.edu (Gnanasekaran Swaminathan)
- Organization: University of Virginia
- References: <2234@h.cs.wvu.wvnet.edu>
- Date: Mon, 31 Aug 1992 16:38:59 GMT
- Lines: 18
-
- schiebel@cs.wvu.wvnet.edu (Darrell Schiebel) writes:
- |>
- |> In the Sun (SC1.0 w/ cfront 2.1 (I think)), an explicit call
- |> to a class' destructor from within a one of the class' member
- |> functions works:
- |>
- |> void Tess::cleanup(Bool abort) {
- |> Tess::~Tess();
- |> }
- |>
- |> However, in gcc-2.2.2 this does not work, and gives the error:
-
- You have tried everything except the one that works in gcc:
-
- this->Tess::~Tess();
-
- -Sekar
-
-