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-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Table of pointers question Date: Thu, 24 Sep 2009 06:39:09 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: +ERTOT2Y9KJRZ8n+NpAZGA.user.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.0 X-Newsreader: Tom's custom newsreader Cancel-Lock: sha1:6TZcuAbZs96NX3BVnmLRRIO9EcM= Xref: g2news2.google.com comp.lang.ada:8452 Date: 2009-09-24T06:39:09+00:00 List-Id: > The example above does declare an array of DirectoryEntryType, i.e. > EntryList, but this array isn't used anywhere. Did Cohen really > declare that variable, or did you add it yourself? Page 341, in the chapter on uses of Access Types, shows a simple example sorting the entries in array Entry_List. On the next page, Cohen shows "reducing the amount of data movement by using an array of pointers to Directory_Entry_Type records in place of the array of Directory_Entry_Type records:". So the example on 341 has the Entry_List array and the modified version drops that to use instead the Entry_Pointer_List array.