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,FREEMAIL_FROM, LOTS_OF_MONEY 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 14:44:09 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: limor_ru@walla.co.il (lolo27) Newsgroups: comp.lang.ada Subject: Re: how to declare an array of pointers Date: 1 Nov 2003 14:44:09 -0800 Organization: http://groups.google.com Message-ID: <92bfc3dd.0311011444.3fe8871f@posting.google.com> References: <92bfc3dd.0311010818.63932bf9@posting.google.com> NNTP-Posting-Host: 217.132.91.130 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1067726649 25466 127.0.0.1 (1 Nov 2003 22:44:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 1 Nov 2003 22:44:09 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:1910 Date: 2003-11-01T14:44:09-08:00 List-Id: tmoran@acm.org wrote in message news:... > >my question is: > >is Array_Hash_type an array of pointers > WYSIWYG. > > type Array_Hash_type is array (10..HASH_SIZE) of ptr_array; > > So Array_Hash_type is an array of "ptr_array"s. Since > > type ptr_array is > > record > ... > a ptr_array is a record, not a pointer. So Array_Hash_type is > an array of records (which may contain pointers, etc). > > >if not then how can i define one i need an example > Assuming that "p_node" (which you didn't define in your posting) > is an access type (aka pointer), then > type Array_Hash_type is array (10..HASH_SIZE) of p_node; > would be an array of pointers. thanks now i have to change all my program 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