Re: Help needed for ada package
- From: Simon Wright <simon@xxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 19:03:41 +0100
You could make Individual.Associate a packed array (1 .. 1_000_000) of
Boolean, set True if there's an Association .. though since
Association is symmetric as far as I can tell it might be better to
have a separate two-dimensional array for this.
I take it that ID is range 1 .. 1_000_000? if so you should index
Society by ID.
Why do you have pointers? you could just have an array of individuals.
Names are very important. "Pointer" is a very unhelpful name for the
concept you have in mind!
type Individuals is array (ID) of Indivuals;
Society : Individuals;
How are you going to know whether a given Individual exists? (has been
Rated, I think?)
--S
.
- Follow-Ups:
- Re: Help needed for ada package
- From: Jeffrey Carter
- Re: Help needed for ada package
- References:
- Help needed for ada package
- From: strictly_mk
- Re: Help needed for ada package
- From: Steve
- Re: Help needed for ada package
- From: strictly_mk@xxxxxxxxxxx
- Help needed for ada package
- Prev by Date: Re: Help needed for ada package
- Next by Date: Re: Private primitive operations available to entire package hierarchy. Can it be done?
- Previous by thread: Re: Help needed for ada package
- Next by thread: Re: Help needed for ada package
- Index(es):
Relevant Pages
|