From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bc4137777a63bff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!news.nl.colt.net!colt.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Help needed for ada package Date: Wed, 27 Jul 2005 19:03:41 +0100 Organization: Pushface Message-ID: References: <1122305318.728942.304120@f14g2000cwb.googlegroups.com> <2OudnZo-iL1aN3jfRVn-iQ@comcast.com> <1122475184.849564.159870@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1122487401 2765 62.49.19.209 (27 Jul 2005 18:03:21 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 27 Jul 2005 18:03:21 +0000 (UTC) Cancel-Lock: sha1:ZAi78TINoqAdzJmGgQZ7q8quWJA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:3807 Date: 2005-07-27T19:03:41+01:00 List-Id: 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