From owner-freebsd-hackers Fri Jun 6 04:20:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA14244 for hackers-outgoing; Fri, 6 Jun 1997 04:20:42 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id EAA14239 for ; Fri, 6 Jun 1997 04:20:39 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA13234; Fri, 6 Jun 1997 07:20:06 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Fri, 6 Jun 1997 07:20 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id GAA10156; Fri, 6 Jun 1997 06:32:37 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id GAA04217; Fri, 6 Jun 1997 06:40:14 -0400 (EDT) Date: Fri, 6 Jun 1997 06:40:14 -0400 (EDT) From: Thomas David Rivers Message-Id: <199706061040.GAA04217@lakes.water.net> To: brian@awfulhak.org, ponds!pobox.com!kpneal Subject: Re: Borland 16bit bcc vs cc/gcc (float) Cc: ponds!FreeBSD.ORG!hackers, ponds!anchorage.net!un_x Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > 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 -