TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Stephane Richard <[log in to unmask]>
Reply To:
Stephane Richard <[log in to unmask]>
Date:
Tue, 16 Oct 2001 04:12:41 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (72 lines)
Thanks Jack,  and everyone else.

It didnt take too long reading about the Booch components to know that this
is exactly what I'm looking for.  It's an excellent tool and fulfills all my
intended purposes.

(Tips his hat to the Booch Component Author) :-)

Stephane Richard
Software Developer

> Regarding:
>
> Stephane Richard wrote:
>
> > 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
> > library.
> >
> > Create the collection
> >
> > TYPE Integer_List IS COLLECTION OF Integer (or something similar).
>
> I'm not sure why you would want to do that.  Use Ada's generic packaging,
> which is
> somewhat analogous to C++ templates and Generic Java (PolyJ).
>
> >
> >
> > 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.
>
> There are several sources of data structure packages in Ada, you can find
> the Booch
> components, or the packages I have used for years at
>
> http://www.cs.uofs.edu/~beidler/Ada/index.html
>
> Jack Beidler
> --
> John (Jack) Beidler, Ph.D., Professor of Computer Science
> Computing Sciences Department
> University of Scranton
> Scranton, PA 18510
> - - - - - - - - - - - - - - -
> Voice: (570)941-7774  FAX: (570)941-4250
> Email: [log in to unmask]
> Web:   http://www.cs.Scranton.edu/~beidler
>
>

--
Stephane Richard
Software Developer
[log in to unmask]

Sent through GMX FreeMail - http://www.gmx.net

ATOM RSS1 RSS2