From -6101289159474588271
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,972722ed514d508a
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-07-30 13:45:10 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Francis Glassborow <francis.glassborow@ntlworld.com>
Newsgroups: comp.std.c++
Subject: Re: try block as main block of a function
Date: Mon, 30 Jul 2001 20:44:26 GMT
Organization: Southfield Microcomputer SS
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <+5FKSWA1iaZ7Ew4q@ntlworld.com>
References: <3b6061b5.1188820@news.terra.es> <cKmyuWA$AJY7EwG1@ntlworld.com>
 <9jr8bd$19vqd$1@ID-49767.news.dfncis.de> <OOB2fjAifdY7Ewle@ntlworld.com>
 <9k34ms$2akk5$1@ID-49767.news.dfncis.de>
Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
X-Trace: mail2news.demon.co.uk 996525876 mail2news:10499 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 5.00 U <TilyaeicE$WmMOP9F8P4$y3lmP>
Lines: 25
Xref: archiver1.google.com comp.std.c++:6826

In article <9k34ms$2akk5$1@ID-49767.news.dfncis.de>, Anthony Williams
<anthwil@nortelnetworks.com> writes
>8.4p16 says:
>"The exception being handled is rethrown if control reaches the end of a
>handler of the function-try-block of a constructor or destructor. Otherwise,
>a function returns when control reaches the end of a handler for the
>function-try-block (6.6.3). Flowing off the end of a function-try-block is
>equivalent to a return with no value; this results in undefined behavior in
>a value-returning function (6.6.3)."

You are right. But that seems adequate for not using them except for
ctors (only fools let exception escape from dtors :)


Francis Glassborow      ACCU
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



