From: robin AT hyperion22 DOT freeserve DOT co DOT uk (Robin Pell) Newsgroups: comp.os.msdos.djgpp Subject: Re: Undocumented Keyword... Date: Tue, 13 Apr 1999 17:02:32 GMT Organization: Customer of Planet Online Lines: 36 Message-ID: <37137865.457763@news.freeserve.net> References: <3711ACD9 DOT FFEE04F9 AT kampsax DOT dtu DOT dk> <19990413124704 DOT 17462 DOT 00000053 AT ng20 DOT aol DOT com> NNTP-Posting-Host: modem-38.greedy.dialup.pol.co.uk X-Trace: news8.svr.pol.co.uk 924023714 14003 62.136.149.166 (13 Apr 1999 17:15:14 GMT) NNTP-Posting-Date: 13 Apr 1999 17:15:14 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 13 Apr 1999 16:47:04 GMT, drwgrphcs AT aol DOT com (DrwGrphcs) wrote: > >I am not quite sure, but I think C++ also supports a finally statement as well. >This finally statement would take action after the try...catch. SO you would >have > >try{ >do dangerous >} >catch(Exception e){ >do not so dangerous >} >finally{ >make sure variables are appropriate before continuing on >} > IIRC, finally is a Java idea. C++ does have catch... which catches everything otherwise not specified. eg: try{ do dangerous } catch(Exception e){ do not so dangerous } catch(...) { do anything else not covered elsewhere } Regards, Rob.