comp.lang.ada
 help / color / mirror / Atom feed
From: Phil Thornley <phil.jpthornley@googlemail.com>
Subject: Re: Representing errno in SPARK
Date: Tue, 9 Jun 2009 10:26:53 -0700 (PDT)
Date: 2009-06-09T10:26:53-07:00	[thread overview]
Message-ID: <097700d6-31e1-421a-be30-56b026cd2da6@q2g2000vbr.googlegroups.com> (raw)
In-Reply-To: f5ea2a0d-3a2c-4ffa-89ba-f1619d671bb8@h28g2000yqd.googlegroups.com

On 9 June, 17:11, xorquew...@googlemail.com wrote:
> Phil Thornley wrote:
> > What you are trying to do (by having other SPARK code in the body) is
> > mixing code that is inside and outside the 'SPARK boundary' in a
> > single package.
>
> I'm not entirely sure that's the case. The code in the body just maps
> errno values to enumeration values. I'd consider this code to be on
> the boundary at most (as opposed to any of it being "outside").
>
Well, the implementation of Errno is clearly outside the boundary and
any other code you are submitting to the Examiner must be inside the
boundary, by definition.
('On the boundary' would be a new concept for SPARK :-)
. . .

> > (A second possibility is simply to create an Errno in the package body
> > with a comment that it isn't actually used by the code ...)
>
> I did consider this but I wondered if this would cause issue with
> SPARK's
> flow analysis (as I'm only pretending to read/write a variable).

It shouldn't upset the flow analysis (but you will get compiler
warnings about unused data).

Phil Thornley



      reply	other threads:[~2009-06-09 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09 14:06 Representing errno in SPARK xorquewasp
2009-06-09 14:32 ` roderick.chapman
2009-06-09 15:02   ` xorquewasp
2009-06-09 16:03     ` Phil Thornley
2009-06-09 16:11       ` xorquewasp
2009-06-09 17:26         ` Phil Thornley [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