Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 1997 06:40:14 -0400 (EDT)
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        brian@awfulhak.org, ponds!pobox.com!kpneal
Cc:        ponds!FreeBSD.ORG!hackers, ponds!anchorage.net!un_x
Subject:   Re: Borland 16bit bcc vs cc/gcc (float)
Message-ID:  <199706061040.GAA04217@lakes.water.net>

next in thread | raw e-mail | index | archive | help
> 
> > At 12:03 PM 5/31/97 -0800, Steve Howe wrote:
> [.....]
> > Who says you always have to use exit()?
> > 
> > In fact, I've observed C++ code that never calls the destructors if you
> > exit() of out a program.
> [.....]
> 
> Yep, it at least won't call the destructors for the main() stack
> vars, no matter how smart the compiler is.
> 

  Well - that's not exactly true.  You could, for example, 
set up an atexit() routine to call the appropriate destructors...,
if at construction time you simply added them to a list of "to be
destroyed" things...

 This brings into play the entire EXCEPTION stuff... which leads us
to another story.

	 - Dave Rivers -



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706061040.GAA04217>