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,7d3cb5920e882220 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Exceptions Date: Thu, 13 Dec 2007 13:20:35 -0600 Organization: Jacob's private Usenet server Message-ID: References: <5947aa62-2547-4fbb-bc46-1111b4a0dcc9@x69g2000hsx.googlegroups.com> <475c6ed8$0$13111$9b4e6d93@newsspool2.arcor-online.net> <1kxk3hlfa25dw$.fl2wvbn0tpbg$.dlg@40tude.net> <475d296a$0$27813$4f793bc4@news.tdc.fi> <12mjar2f2t2e6$.o2upq0n29j1f.dlg@40tude.net> <475d99c6$0$3520$4f793bc4@news.tdc.fi> <1x0h6yxp9rhy1.1thonmo9cmwy3$.dlg@40tude.net> <475e8bde$0$27850$4f793bc4@news.tdc.fi> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1197573420 12767 69.95.181.76 (13 Dec 2007 19:17:00 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 13 Dec 2007 19:17:00 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Xref: g2news1.google.com comp.lang.ada:18928 Date: 2007-12-13T13:20:35-06:00 List-Id: "Robert A Duff" wrote in message news:wcctzmonfmn.fsf@shell01.TheWorld.com... > "Randy Brukardt" writes: > > > "Niklas Holsti" wrote in message > > news:475e8bde$0$27850$4f793bc4@news.tdc.fi... > > ... > >> And perhaps also > >> > >> 5. Exceptions as formal generic parameters. > > > > Ada has this (although it isn't obvious): just pass an > > Ada.Exceptions.Exception_Id to the generic. That is, given a generic spec > > something like: > > > > generic > > My_Exception : Ada.Exceptions.Exception_Id := > > Constraint_Error'Identity; > > package Gen is ... > > Yeah, you can do that. > > But IMHO this area of the language is a mess. > > Making exceptions be first-class objects would make the language > simpler, easier to implement, and more powerful. Right, but in that case we *still* wouldn't need formal exceptions, because formal objects would serve just as well. Which really was my point - no sense in adding more cruft for that. Randy.