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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gegeweb.org!news.ecp.fr!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ichbiah's Letter Date: Sun, 26 Oct 2014 00:33:31 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <558688c3-02b0-4e14-838b-2d94074030bd@googlegroups.com><87k33oecnw.fsf@ixod.org><1pgm5po9g6xht$.1svdogelukl6r$.dlg@40tude.net> NNTP-Posting-Host: 24-196-82-226.static.mdsn.wi.charter.com X-Trace: loke.gir.dk 1414301613 21899 24.196.82.226 (26 Oct 2014 05:33:33 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sun, 26 Oct 2014 05:33:33 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:22742 Date: 2014-10-26T00:33:31-05:00 List-Id: "Simon Wright" wrote in message news:lyppdg8k7q.fsf@pushface.org... > "Dmitry A. Kazakov" writes: > >> Presently approximately 50-80% of all run-time faults are due to >> false-positive dynamic checks. > > This is certainly not true in the code I have been involved with. In > fact I don't recall ever having seen such a fault (assuming, that is, > that 'false-positive' means that it's some non-obvious consequence of > Ada's rules). If you use anonymous access types unsafely (that is, to convert them to other types), it will happen a lot. If you use anonymous access types sparingly (mostly as a stand-in for out parameters in functions, a work-around you don't need in Ada 2012), you won't run into *dynamic* accessibility checks. (Dynamic checks are only possible in generic bodies and with anonymous access types.) Similarly for the checks associated with class-wide types. If you don't derive tagged types in subprograms, you'll never see one of those checks (if everything is library-level, no check is possible). And again, almost all of those checks are static. Randy.