TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Stephane Richard <[log in to unmask]>
Mon, 15 Oct 2001 23:13:01 +0200
text/plain (36 lines)
Just a quick question about Ada95.  Is there such a thing as a Collection
Object, or an equivalent data structure that would allow me to do the
following, for example.  Either included in Ada, or coded and available somewhere as a

Create the collection

TYPE Integer_List IS COLLECTION OF Integer (or something similar).

This_List : Integer_List;

ThisList.Add 12
ThisList.Add 24

ThisList.Delete 2  -- DELETE second element added to the collection.

and other features to allow to manipulate this list of whichever type I
choose.  In this example it's a list of integers.  But it could be a list of
records, a list of packages (if possible), a list of pretty much anything
available to the Ada95 Language.

Thank you all and I'm awaiting your precious comments and suggestions on


Stephane Richard
Software Developer

Stephane Richard
Software Developer
[log in to unmask]

Sent through GMX FreeMail -