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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Pointer to instance of indefinite array? Date: Tue, 12 Aug 2014 19:09:37 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <892c6798-489d-400a-bb9a-7a14605c493f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 13 Aug 2014 02:09:38 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="a0c81a81d1281113b3831cf0c04e791a"; logging-data="12298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yPbiYwBvlofwdd2lkxcQb8wXmWoJNlhI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <892c6798-489d-400a-bb9a-7a14605c493f@googlegroups.com> Cancel-Lock: sha1:/s15I4Z9T6ixiC0Qm/rTlU/P1KM= Xref: news.eternal-september.org comp.lang.ada:21702 Date: 2014-08-12T19:09:37-07:00 List-Id: On 08/12/2014 07:07 PM, NiGHTS wrote: > > In this situation I have an array of "Element" records with an unknown number > of elements. The number of elements are to be defined by the user of this > package and passed as a pointer to the procedure "Do_Something_With_Array". Why are you using an access type? There is no need for it. > What is the best way to achieve this goal without using new / free? Think in Ada and get rid of the access type. -- Jeff Carter "That was the most fun I've ever had without laughing." Annie Hall 43