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: border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Differences between Ada 83 and other revisions Date: Sun, 16 Feb 2014 16:58:24 +0100 Organization: A noiseless patient Spider Message-ID: References: <19ac8735-7a9c-429f-a111-a1b3c4b0985b@googlegroups.com> <3872de7d-2df4-4ddb-8348-45eb03b3588e@googlegroups.com> <6aca36a4-cd78-4098-a1f7-646cb37cd14d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 16 Feb 2014 15:58:24 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="29347"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18U8ebMI93Hy5gU2db3nBGf" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: Cancel-Lock: sha1:4gfa63vwrDiLTLrtjFGUBVSrhOA= X-Enigmail-Version: 1.6 Xref: number.nntp.dca.giganews.com comp.lang.ada:184919 Date: 2014-02-16T16:58:24+01:00 List-Id: Le 16/02/2014 15:13, Robert A Duff a écrit : >> But at least it spells out that it is potentially dangerous by being >> > called 'Unchecked", like all the other 'Unchecked" parts of the >> > language ...very easy to find! > If only that were true. I don't see any "unchecked" here: > > for X'Address use ...; > > X := ...; > > It would be great if you could find all unsafe (i.e. potentially > erroneous) code by searching for something like "unchecked". > But alas. But AdaControl can find every use of (instantiations of) Unchecked_*, and all usages of 'Address, or only address clauses that refer to the address of another object. There needs to be a boundary between what is checked by the compiler and what is best handled by external tools; you may not agree to where the line has been drawn, but tools that can find unsafe features do exist! -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr