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,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 28 Mar 2005 16:54:18 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1111607633.301232.62490@z14g2000cwz.googlegroups.com> <87oed6wvyx.fsf_-_@insalien.org> Subject: Re: Class hierarchy of exceptions (Ada, C++) Date: Mon, 28 Mar 2005 16:56:38 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: <_LKdnQdDDJSGFtXfRVn-qw@megapath.net> NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-fJx9tOI2gugii27RHYKQgxbjhuEMgOP/rik3eV+OApS+WdKWsP6/sBhkCb6hNI7HUyi39qaVORo3n6P!yFTEoyxFRLxrJFQRSZlFlIOB2twchnumfXfJwJMl//fSmKzepH0E1EJ5qQF6m3jQIbNLAjNCLv1O X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:10101 comp.lang.c++:47700 comp.realtime:1800 comp.software-eng:5439 Date: 2005-03-28T16:56:38-06:00 List-Id: "Ludovic Brenta" wrote in message news:87oed6wvyx.fsf_-_@insalien.org... ... > The C++ way of catching all exceptions of a class and its derived > classes can lead to confusion. One can have multiple exception > handlers for the same exception and it may not be immediately obvious > to the reader which one is called. I see this as a maintenance > problem. If Ada had some sort of exception classes, there certainly would be a overlapping handler check. Having two different handlers for any possible exeception would be prohibited (it certainly is now). So I don't find this much a reason for not having this capability. The reasons for not having it are finalization, memory allocation, and compatibility with Ada 83 & Ada 95. (And mainly that the person working on it ran out of energy for it, and no one else picked it up.) Randy.