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,1a4156f047b063f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder2.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Forcing Exception Handling Date: Tue, 1 Mar 2011 18:00:32 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <02901b13-da72-48ae-9cb3-bf1a10144c44@u3g2000vbe.googlegroups.com> <87y64zucco.fsf@ludovic-brenta.org> <3es12u7g6ppm.4lk5iya2a586.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1299024036 4986 69.95.181.76 (2 Mar 2011 00:00:36 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 2 Mar 2011 00:00:36 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-RFC2646: Format=Flowed; Original Xref: g2news1.google.com comp.lang.ada:17705 Date: 2011-03-01T18:00:32-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:3es12u7g6ppm.4lk5iya2a586.dlg@40tude.net... > On Mon, 28 Feb 2011 21:54:08 -0600, Randy Brukardt wrote: ... >> That seems like bad software management to >> me. In any case, any such "contracts" in Ada would have to be optional >> (for >> compatibility reasons), and that might actually help reduce the problems. > > Unless Storage_Error and Program_Error made manageable contracted > exceptions would have only limited use. I agree; I think that if we go this way all exceptions would have to appear in the contract. To make that managable, we'd also need a way to define a "set" of exceptions so they could be referred to together. I personally think that is sufficient, and it would let the compiler tell you what it knows about exceptions being raised. Randy.