comp.lang.ada
 help / color / mirror / Atom feed
* Static_Predicate on array-types.
@ 2014-07-17 19:43 Shark8
  2014-07-18 22:05 ` Robert A Duff
  0 siblings, 1 reply; 3+ messages in thread
From: Shark8 @ 2014-07-17 19:43 UTC (permalink / raw)


Is there any particular reason why we cannot put static-predicates on an 
array-type, such as (e.g.) to ensure that some condition always holds?

Example, we want an unbounded array, but to ensure the first index is 
always 1:
     Type One_Based_Vector is Array(Positive Range <>) of Integer
       with Static_Predicate => One_Based_Vector'First = 1;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-21 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-17 19:43 Static_Predicate on array-types Shark8
2014-07-18 22:05 ` Robert A Duff
2014-07-21 22:35   ` Randy Brukardt

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