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,d11e75ead27d62f5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-01 15:30:51 PST Path: archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: how to declare an array of pointers References: <92bfc3dd.0311010818.63932bf9@posting.google.com> <92bfc3dd.0311011444.3fe8871f@posting.google.com> In-Reply-To: <92bfc3dd.0311011444.3fe8871f@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 01 Nov 2003 23:30:50 GMT NNTP-Posting-Host: 63.184.1.29 X-Complaints-To: abuse@earthlink.net X-Trace: newsread4.news.pas.earthlink.net 1067729450 63.184.1.29 (Sat, 01 Nov 2003 15:30:50 PST) NNTP-Posting-Date: Sat, 01 Nov 2003 15:30:50 PST Xref: archiver1.google.com comp.lang.ada:1911 Date: 2003-11-01T23:30:50+00:00 List-Id: lolo27 wrote: > i dont understand how do i access an elemnt? > > Array_Hash_type(index).something > > i know i have to allocate each elemnt but how can i access elment > with an index after he is allocated. > > can you post me example? > where can i find example on the net? > thanks a lot It's apparent that you haven't developed a very good understanding of Ada yet, so I have to ask why you think you need pointers. Pointers are needed in Ada much less often than in many other languages. About the only time a beginner really needs pointers is to implement dynamic data structures, but such structures don't generally need arrays. It appears you may be trying to create a hash table, but I think you need to sit down with one of the fine on-line texts or tutorials and get to know the language a little better before you dive into something like that. A good place to look on the net for Ada resources is www.adapower.com; www.adaworld.com is another. -- Jeff Carter "Many times we're given rhymes that are quite unsingable." Monty Python and the Holy Grail 57