comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Q: SPARK visibility rules and inherit annotations.
Date: Thu, 20 May 2010 03:47:53 +0200
Date: 2010-05-20T03:47:53+02:00	[thread overview]
Message-ID: <op.vczdx3teule2fv@garhos> (raw)
In-Reply-To: 4bf45732$0$2407$4d3efbfe@news.sover.net

Le Wed, 19 May 2010 23:29:22 +0200, Peter C. Chapin <pcc482719@gmail.com>  
a écrit:
> One thing I like about Ada in general is how you can express a design in
> package specifications and then let the compiler check a few things  
> about its
> consistency before embarking on the implementation. With SPARK that  
> effect is
> even greater. For example in my Cryptographic_Services package the  
> Examiner
> initially complained about how there was no way to initialize one of my
> private types.
I've noticed the same, it requires some good practice to be applied,  
someway comparable to what you could get with AdaControl and a good rules  
file (I mean AdaControl's rules). As an example, SPARK sees an error if  
you forget the give the name of procedure at its end statement.

While sometime, I would like to better understand some choices, like the  
one I've meet, which is that it does not accept nested package  
specifications, or, more important, why it don't wants “type ... is new  
...;”. If I could understand the rational behind this latter restriction,  
this could perhaps help me to redesign.



  reply	other threads:[~2010-05-20  1:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19 15:04 Q: SPARK visibility rules and inherit annotations Peter C. Chapin
2010-05-19 15:54 ` Phil Thornley
2010-05-19 21:29   ` Peter C. Chapin
2010-05-20  1:47     ` Yannick Duchêne (Hibou57) [this message]
2010-05-20 11:03       ` Gavino
2010-05-20 15:58         ` Yannick Duchêne (Hibou57)
2010-05-21 10:42           ` Gavino
2010-05-25 20:58             ` Yannick Duchêne (Hibou57)
2010-05-19 16:22 ` Yannick Duchêne (Hibou57)
2010-05-19 20:41   ` Gavino
replies disabled

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