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,71d79ed4fdc42ae2 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!193.201.147.68.MISMATCH!feeder.news-service.com!feeder.news-service.com!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Make specific warning error with gnat? 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: <82mxuaxmb1.fsf@stephe-leake.org> <4c2e4d14$0$6769$9b4e6d93@newsspool3.arcor-online.net> Date: Sat, 3 Jul 2010 12:00:48 +0200 Message-ID: <1v1fechw7l7k5.su72n9e0y395$.dlg@40tude.net> NNTP-Posting-Date: 03 Jul 2010 12:00:49 CEST NNTP-Posting-Host: ce047337.newsspool3.arcor-online.net X-Trace: DXC=]OASXkQ9^VN[kmHKHnaEnMMcF=Q^Z^V3H4Fo<]lROoRA8kF On Fri, 02 Jul 2010 22:33:25 +0200, Georg Bauhaus wrote: > On 7/2/10 11:44 AM, Markus Schoepflin wrote: > >> I neither have the time nor the resources available to fix all of them, >> nor am I allowed to do so. But if the compiler already knows that there >> will be a constraint error at runtime, I would have liked the >> compilation to fail. > > (I can't think of a way to do this without annotating each > occurrence in the source program: some programs might want > the constraint_error to be produced for whatever reason ...) Yep, it is called contracted exceptions! BTW. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de