From -2843705911574250036 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,972722ed514d508a X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2001-07-29 20:18:05 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: "Andy Salnikov" Newsgroups: comp.std.c++ Subject: Re: try block as main block of a function Date: Mon, 30 Jul 2001 03:16:57 GMT Organization: BINP, Novosibirsk, Russia Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: <9jtbcc$104r4$1@sky.inp.nsk.su> References: <3b6061b5.1188820@news.terra.es> <9jr8bd$19vqd$1@ID-49767.news.dfncis.de> X-Trace: mail2news.demon.co.uk 996463023 mail2news:3003 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 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 28 Jul 2001 03:26:04 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Lines: 33 Xref: archiver1.google.com comp.std.c++:6808 "Francis Glassborow" wrote in message news:OOB2fjAifdY7Ewle@ntlworld.com... > In article <9jr8bd$19vqd$1@ID-49767.news.dfncis.de>, Anthony Williams > writes > >Why would you not advocate using function try blocks? > > Because many will forget that they automatically rethrow if you do not > do so. I hate default behaviour as it often hides errors. > Is my reading of 15.3/16 incorrect? It seems to imply that what you are writing about is applicable to constructors and destructors only, but normal functions should simply return and not rethrow. > > 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 ] > --- [ 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 ]