comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: specifying only 'First of an index in an array
Date: Wed, 3 Feb 2021 20:29:44 +0100	[thread overview]
Message-ID: <rvetj9$h93$1@dont-email.me> (raw)
In-Reply-To: <81d3d242-1bb8-48fb-8bd4-f236447c0a00n@googlegroups.com>

On 2/3/21 6:47 PM, Mehdi Saada wrote:
> 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 ?

Arrays can't grow in Ada, so I don't know what you're asking. For a sequence 
with a fixed lower bound and variable length you can use Ada.Containers.Vectors.

-- 
Jeff Carter
"Sheriff murdered, crops burned, stores looted,
people stampeded, and cattle raped."
Blazing Saddles
35

  reply	other threads:[~2021-02-03 19:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-03 17:47 specifying only 'First of an index in an array Mehdi Saada
2021-02-03 19:29 ` Jeffrey R. Carter [this message]
2021-02-03 21:06   ` Mehdi Saada
2021-02-03 21:45     ` Jeffrey R. Carter
2021-02-03 22:15       ` Mehdi Saada
replies disabled

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