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 X-Google-Thread: 103376,60118c65070501a2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-06 10:16:05 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3B97ACBA.26FB053F@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Pool Specific Access Types? References: <3B9797BF.B6FEA4A@worldnet.att.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 06 Sep 2001 17:04:40 GMT NNTP-Posting-Host: 12.86.32.142 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 999795880 12.86.32.142 (Thu, 06 Sep 2001 17:04:40 GMT) NNTP-Posting-Date: Thu, 06 Sep 2001 17:04:40 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:12816 Date: 2001-09-06T17:04:40+00:00 List-Id: "Mr.Clueless" wrote: > > Your right, it is a typo. Should read... > > function Sum(List: Numb_ptr) return Integer is > Local : Numb_ptr := List; S : Inter := 0; ^^^^^ Another transcription error > begin > while Local /= null loop > S := S + Local.The_Numb; Local := Local.Next; > end loop; return S; > end Sum; > > Also, I'm not sure how accessing two fields in a loop would cause an > error. I can possibly see issues with regards to scope, but it's a little > fuzzy. Perhaps a nested loop, one accessing the "The_Numb" value and the > other accessing the "Next" value would do it? There is nothing wrong with your logic. I must assume there is something wrong with your syntax. Perhaps, if you posted some of the actual code, instead of your manual transcriptions, we might be able to find your error. Jim Rogers Colorado Springs, Colorado USA