From: "Santiago Urueña" <suruena@gmail.com>
Subject: Re: Proposal: pragma Assumption
Date: Wed, 28 May 2008 00:58:48 -0700 (PDT)
Date: 2008-05-28T00:58:48-07:00 [thread overview]
Message-ID: <13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com> (raw)
In-Reply-To: 30917be5-1446-417c-8a4e-18b2f9a1f420@b1g2000hsg.googlegroups.com
> 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".
And maybe the pragma Assumption_Policy is a bad idea for the same
reasons: this pragma has preference over the compiler switches (at
least for gnat in the case of pragma Assert_Policy), so it is very
easy to forget to change the policy from "Check" to "Error"...
--
Santiago Urueña-Pascual
Technical University of Madrid (UPM)
next prev parent reply other threads:[~2008-05-28 7:58 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-25 18:59 Proposal: pragma Assumption Santiago Urueña
2008-05-25 22:34 ` Georg Bauhaus
2008-05-26 17:10 ` Santiago Urueña
2008-05-26 10:01 ` Simon Wright
2008-05-26 17:21 ` Santiago Urueña
2008-05-26 18:21 ` Simon Wright
2008-05-27 8:11 ` Santiago Urueña
2008-05-27 19:08 ` Simon Wright
2008-05-27 3:28 ` anon
2008-05-27 7:51 ` Santiago Urueña
2008-05-27 9:39 ` anon
2008-05-27 10:39 ` Georg Bauhaus
2008-05-27 11:27 ` Santiago Urueña
2008-05-28 1:12 ` anon
2008-05-28 7:54 ` Santiago Urueña
2008-05-30 0:27 ` Randy Brukardt
2008-05-30 7:50 ` Georg Bauhaus
2008-05-30 11:03 ` Santiago Urueña
2008-05-31 5:56 ` Stephen Leake
2008-05-31 9:04 ` Georg Bauhaus
2008-06-02 8:24 ` Santiago Urueña
2008-06-02 19:35 ` anon
2008-05-30 11:02 ` Santiago Urueña
2008-05-28 7:58 ` Santiago Urueña [this message]
2008-05-28 8:24 ` Jean-Pierre Rosen
2008-05-28 13:11 ` Santiago Urueña
2008-05-28 9:14 ` Georg Bauhaus
2008-05-28 13:14 ` Santiago Urueña
2008-05-28 11:01 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox