From: anon@anon.org (anon)
Subject: Re: Proposal: pragma Assumption
Date: Wed, 28 May 2008 11:01:13 GMT
Date: 2008-05-28T11:01:13+00:00 [thread overview]
Message-ID: <ZXa%j.43977$we7.34739@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: 13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com
Check the comments in GNAT's package "Ada.Asynchronous_Task_Control"
which includes the "pragma Unimplemented_Unit;" statement.
And as for compiler allowing "--allow-unimplemented-units" this is
against the Ada RM. It might be possible to compile Ada without the
body for all routines But you must provide either a link (pragma Import)
or the body to all routines before binding and linking.
In <13aa4422-c478-478e-8e33-882508d9d1f8@k30g2000hse.googlegroups.com>, =?ISO-8859-1?Q?Santiago_Urue=F1a?= <suruena@gmail.com> writes:
>> So the proposal would be adding to the next Ada revision two new
>> pragmas:
>>
>> pragma Assumption ([Check =3D>] boolean_expression[,
>> [Message =3D>] 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=F1a-Pascual
>Technical University of Madrid (UPM)
prev parent reply other threads:[~2008-05-28 11:01 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
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 [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox