comp.lang.ada
 help / color / mirror / Atom feed
From: JP Thornley <jpt@diphi.demon.co.uk>
Subject: Re: SPARK Examiner -- visibility of Ada.Strings.Unbounded (and probably lots of other packages)
Date: Thu, 26 Mar 2009 16:30:17 +0000
Date: 2009-03-26T16:30:17+00:00	[thread overview]
Message-ID: <ynZnf1BZ26yJJwy0@diphi.demon.co.uk> (raw)
In-Reply-To: OPWdnbuqg7uyN1bUnZ2dnUVZ8qOWnZ2d@posted.plusnet

In article <OPWdnbuqg7uyN1bUnZ2dnUVZ8qOWnZ2d@posted.plusnet>, Tim Rowe 
<spamtrap@tgrowe.plus.net> writes
>Ludovic Brenta wrote:
>
>> I don't think Ada.Strings.Unbounded is part of SPARK. SPARK is a
>> *subset* of Ada that removes everything not statically provable.
>
>It isn't. But John Barnes, in High Integrity Software: The SPARK 
>Approach to Safety and Security, says "where absolutely essential [...] 
>any feature of full Ada [...] can be used in parts of a program covered 
>by the special hide directive which tells the examiner that part of a 
>program is not to be examined". I just can't work out how to hide the 
>relevant bit -- I'm only allowed the hide after immediately after 
>private, after is and after the begin of a body -- that means that I 
>can't get the with inside the hidden part.

Tim,

Don't worry about the 'with' - the Examiner will flag an error but it 
(probably) won't stop the Examiner happily examining the visible part of 
the spec.

Again, have a look at SPARK_IO specification - there is a with (but no 
inherit) for Text_IO.  This generates a message from the Examiner but 
since it is only needed in the private part (which is hidden) the 
specification itself is examined OK and can be referenced in other 
proper SPARK text.

Cheers,

Phil

-- 
JP Thornley



  parent reply	other threads:[~2009-03-26 16:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-26 14:50 SPARK Examiner -- visibility of Ada.Strings.Unbounded (and probably lots of other packages) Tim Rowe
2009-03-26 15:13 ` Ludovic Brenta
2009-03-26 15:18   ` Georg Bauhaus
2009-03-26 15:35     ` roderick.chapman
2009-03-26 17:06       ` Tim Rowe
2009-03-26 19:13         ` Tim Rowe
2009-03-27  8:27           ` JP Thornley
2009-03-27  8:34             ` roderick.chapman
2009-03-27 16:03               ` Tim Rowe
2009-03-26 15:40     ` roderick.chapman
2009-03-26 16:15   ` Tim Rowe
2009-03-26 16:26     ` roderick.chapman
2009-03-26 16:30     ` JP Thornley [this message]
2009-03-26 16:51     ` roderick.chapman
replies disabled

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