comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Safety Critical Systems and Ada 95
Date: 1998/06/11
Date: 1998-06-11T00:00:00+00:00	[thread overview]
Message-ID: <EuEBLM.97x.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 485015649wnr@diphi.demon.co.uk


JP Thornley (jpt@diphi.demon.co.uk) wrote:

: ...
: It's important to realise that pragma Restrictions does not *impose* 
: that restriction on the code. ARM 13.12 says "A pragma Restrictions 
: expresses the user's intent to abide by certain restrictions." and if 
: the user breaks the restriction the program need not do anything about 
: it. [In fact I think the program becomes erroneous - which isn't really 
: very useful.]

Not quite.  

Any restriction whose violation can be detected at compile-time
or link-time is treated as an error by the compiler.  It is only
restrictions that are undetectable prior to run-time that can
result in erroneous execution upon violation.

This rule is indicated by RM 13.12(8) which says 

  ... a partition shall obey the restriction ...

The word "shall" here means that the compiler or the
linker is required to detect violation of the restriction.

Different rules may apply to particular restrictions, but
13.12(8) specifies the default rule.

: ...
: Phil Thornley
: | JP Thornley    EMail jpt@diphi.demon.co.uk                           |
: |                      phil.thornley@acm.org                           |

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




  reply	other threads:[~1998-06-11  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-10  0:00 Safety Critical Systems and Ada 95 John J Cupak Jr, CCP
1998-06-10  0:00 ` Rakesh Malhotra
1998-06-10  0:00 ` Rakesh Malhotra
1998-06-10  0:00 ` Rakesh Malhotra
1998-06-10  0:00 ` JP Thornley
1998-06-11  0:00   ` Tucker Taft [this message]
1998-06-18  0:00     ` Robert I. Eachus
1998-06-10  0:00 ` Rakesh Malhotra
1998-06-11  0:00   ` Brian Rogoff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox