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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Exceptions Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH 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> <475fc4c9$0$27835$4f793bc4@news.tdc.fi> Date: Wed, 12 Dec 2007 14:14:07 +0100 Message-ID: <1swun0w6tq9td.fohq6oau34rm$.dlg@40tude.net> NNTP-Posting-Date: 12 Dec 2007 14:06:22 CET NNTP-Posting-Host: 47cbb4d8.newsspool1.arcor-online.net X-Trace: DXC=4ioR87Hi5bRYQ5E:lkgRo On Wed, 12 Dec 2007 13:37:09 +0200, Niklas Holsti wrote: > If the implementation with Exception_Id is so easy, I wonder that > the syntax with "exception" as formal parameter is not included in > the language. But I know that language extensions are prioritized, > and in fact I have never needed a formal exception parameter, > although I have sometimes written wrappers for instances of > generics just to translate an exception defined and raised by the > generic into some other exception for the user of the generic. > > In any plan to extend Ada with exception contracts, I think that > formal exception parameters should be included, or else the > contract should allow exceptions to be named by Exception_Id as > well as by the lexical identifier. The reverse, the keyword "exception" should be dropped and replaced by a plain type name Standard.Exception. Then we would be able to pass an exception (or an array of) wherever we wished to. (Exception_Id is IMO a hack) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de