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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a5d:9057:: with SMTP id v23mr1860789ioq.6.1549960477835; Tue, 12 Feb 2019 00:34:37 -0800 (PST) X-Received: by 2002:a05:6830:130d:: with SMTP id p13mr59263otq.2.1549960477684; Tue, 12 Feb 2019 00:34:37 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q69no117421itb.0!news-out.google.com!v141ni302ita.0!nntp.google.com!k10no116654itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 12 Feb 2019 00:34:37 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.186.124.106; posting-account=hMbstgoAAAAIa4kxFYtvUVUHbE1RcZzT NNTP-Posting-Host: 5.186.124.106 References: <21f5f1ca-eabe-4ce6-9ee0-5d308d7676ff@googlegroups.com> <17375128-e016-4366-91ff-cd68f74689b3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNAT proposal: note on implicit exceptions insertion From: Jesper Quorning Injection-Date: Tue, 12 Feb 2019 08:34:37 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2412 X-Received-Body-CRC: 4200110144 Xref: reader01.eternal-september.org comp.lang.ada:55500 Date: 2019-02-12T00:34:37-08:00 List-Id: On Tuesday, February 12, 2019 at 8:28:11 AM UTC+1, Mark Lorenzen wrote: > Do you have som example code at hand? If so, please try and compile it wi= th pragma Restrictions (No_Exception_Propagation) is in effect and switch -= gnatw.x (yes including the dot and x). I have used this to find all places = in the code, where a run-time error could be raised. It is not an optimal s= olution due to the pragma and possible local exception handlers, but could = give an idea of what GNAT is already capable of. I do not hate exceptions. I would like to improve the quality of my program= ming by getting notes where the compiler may rise an exception. An now I also like to inspect the quality of the compiler. The vender may c= hoose to hide the implicit expections caused by sub-optimal compiler qualit= y. Jesper.