comp.lang.ada
 help / color / mirror / Atom feed
From: Peter Amey <peter.amey@praxis-cs.co.uk>
Subject: Re: [Spark] Converting Arrays
Date: Thu, 13 Mar 2003 09:47:24 +0000
Date: 2003-03-13T09:47:24+00:00	[thread overview]
Message-ID: <3E7053AC.DB4C71DD@praxis-cs.co.uk> (raw)
In-Reply-To: mailman.18.1047535488.308.comp.lang.ada@ada.eu.org



"Grein, Christoph" wrote:
> 
> > The restriction that an out mode parameter can't be referenced in a
> > precondition seems to be the major cause of the difficulty, and I have
> > (reluctantly) come to the conclusion that the way to avoid explicit
> > rules for each instance of the output parameter is to pass the length as
> > an additional parameter, as Rod suggests.
> 
> I've never used SPARK myself, but I've read the PDF excerpt of Barnes' book with
> interest.
> 
> I'm wondering whether it wouldn't be feasible to change the SPARK rules in such
> a way to allow references of attributes of out parameters in preconditions.
> (Even in Ada 83, where reading of out parameters was forbidden, reading of their
> attributes and discriminants was allowed - and for a good reason.)

That specific topic is the subject of an open "performance report" and
we have been thinking about it for quite a while.  FWIW, it is not
something that has been identified as a significant problem for most
SPARK users; however, that is no reason to ignore it for ever!

Peter



  reply	other threads:[~2003-03-13  9:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-13  5:55 [Spark] Converting Arrays Grein, Christoph
2003-03-13  9:47 ` Peter Amey [this message]
2003-03-13 10:15   ` Lutz Donnerhacke
2003-03-21 15:05     ` Peter Amey
2003-03-21 15:17       ` Lutz Donnerhacke
  -- strict thread matches above, loose matches on Subject: below --
2003-03-10 17:06 Lutz Donnerhacke
2003-03-10 20:03 ` James S. Rogers
2003-03-10 22:33   ` Lutz Donnerhacke
2003-03-11 10:14 ` Rod Chapman
2003-03-11 10:51   ` Lutz Donnerhacke
2003-03-11 10:52   ` Lutz Donnerhacke
2003-03-11 20:46     ` JP Thornley
2003-03-12  8:43       ` Phil Thornley
2003-03-12 11:57         ` Lutz Donnerhacke
2003-03-12 18:46           ` JP Thornley
2003-03-13 10:14             ` Lutz Donnerhacke
2003-03-12  9:43     ` Rod Chapman
2003-03-12 10:15       ` Lutz Donnerhacke
replies disabled

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