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!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 28 May 2008 11:14:01 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Proposal: pragma Assumption References: <30917be5-1446-417c-8a4e-18b2f9a1f420@b1g2000hsg.googlegroups.com> <13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com> In-Reply-To: <13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <483d2259$0$6611$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 28 May 2008 11:14:01 CEST NNTP-Posting-Host: cc5ee90c.newsspool2.arcor-online.net X-Trace: DXC=A8FM9Fh9_RA2jYf>V4L0gLA9EHlD;3YcB4Fo<]lROoRA8kFKnc\616M64>JLh>_cHTX3jMNBTSBh8> Santiago Urue�a schrieb: >> 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". Wouldn't a compilation configuration be a good place for a partition-wide configuration pragma? Project files typically have a Debug target and a Production target.