From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,699cc914522aa7c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Structured exception information Date: Sat, 20 Jan 2007 17:07:18 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1169330844 14857 192.74.137.71 (20 Jan 2007 22:07:24 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 20 Jan 2007 22:07:24 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:eJuWx3vK21PhOZzchB6IO027Mmk= Xref: g2news2.google.com comp.lang.ada:8377 Date: 2007-01-20T17:07:18-05:00 List-Id: Stephen Leake writes: > I'm certainly not willing to give up any of Ada's other features to > get it. I think there's no need to give up anything. >>> If you look into the details of "structured exception handling" in >>> other languages and implementations, they have bugs, and fundamental >>> flaws in design. >> >> Please be more specific. > > Well, I can't. I plead guilty to arguing from authority and vague > memory on this one. The memory is of discussions of problems with > various exception implementations in C++ and Java, on other > newsgroups. OK, fair enough. Here's my vague memory: C++ always had finalization (destructors). Later on, exceptions were added. There was much moaning and gnashing of teeth from implementers, claiming "exceptions are hard to implement properly". Ada always had exceptions. Later on, finalization was added. There was much moaning and gnashing of teeth from implementers, claiming "finalization is hard to implement properly". The truth is, the interactions between exceptions and finalization are nasty, and hard to get right. - Bob