comp.lang.ada
 help / color / mirror / Atom feed
* specifying only 'First of an index in an array
@ 2021-02-03 17:47 Mehdi Saada
  2021-02-03 19:29 ` Jeffrey R. Carter
  0 siblings, 1 reply; 5+ messages in thread
From: Mehdi Saada @ 2021-02-03 17:47 UTC (permalink / raw)


Is there a way, on nominal or genetic array type definition (I mean in generic specifications), to ensure that Index_type'First is always the same, but that arrays can still grow ?

something like (certainly wrong): type my_type is array (Scalar_type range scalar_type'first..<>) ?

That or I suppose I can wrap a function around that type and make it private to avoid range incompatibilities...

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

end of thread, other threads:[~2021-02-03 22:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 17:47 specifying only 'First of an index in an array Mehdi Saada
2021-02-03 19:29 ` Jeffrey R. Carter
2021-02-03 21:06   ` Mehdi Saada
2021-02-03 21:45     ` Jeffrey R. Carter
2021-02-03 22:15       ` Mehdi Saada

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