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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,78447032bdbeb343 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Proposal: pragma Assumption Date: Wed, 28 May 2008 10:24:56 +0200 Organization: Adalog Message-ID: <0t4j1g.c4o.ln@hunter.axlog.fr> References: <30917be5-1446-417c-8a4e-18b2f9a1f420@b1g2000hsg.googlegroups.com> <13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1211962056 25167 195.25.228.57 (28 May 2008 08:07:36 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 28 May 2008 08:07:36 +0000 (UTC) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:414 Date: 2008-05-28T10:24:56+02:00 List-Id: Santiago Urue�a a �crit : >> So the proposal would be adding to the next Ada revision two new >> pragmas: >> >> pragma Assumption ([Check =>] boolean_expression[, >> [Message =>] string_expression]); >> pragma Assumption_Policy (policy_identifier); -- Error, Check >> > I've been thinking more about it, and probably the compilers should be > encouraged to choose a long switch name to reduce the chance of > forgetting to remove that it in the final binary. For example, instead > of (say) "-gnatap", choose something like "--allow-unimplemented- > units". > If you want to check that something is no more in a program, AdaControl can tell you: - if any pragma you name is used - if any element you name (including procedures of course) is used - if any regexp you name (i.e. "TODO") is matched by a comment -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr