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: Wed, 13 Aug 2014 10:43:19 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <892c6798-489d-400a-bb9a-7a14605c493f@googlegroups.com> <58a951df-217b-48ee-bd0b-f9953f5b622b@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 17:43:21 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="a0c81a81d1281113b3831cf0c04e791a"; logging-data="25988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/CnrFZN/MB9X/MckR7fnjJCkByA8RH50=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:oXO2mLDMWqXxbID6SpfgplVQdSQ= Xref: news.eternal-september.org comp.lang.ada:21722 Date: 2014-08-13T10:43:19-07:00 List-Id: On 08/13/2014 09:06 AM, NiGHTS wrote: > > Is it possible to have a constrained array of indefinite arrays without using > access? In my target program, the "Do_Something_With_Array" function is > actually an interface to a FIFO queue where groups of indefinite arrays are > temporarily buffered for use by another task. Of course this will be via an > entry to a protected object but those details aside how can I construct a > constrained array of indefinite arrays? If I need something like that, I'll usually use an array of an unbounded-array data structure, which in Ada is found in Ada.Containers.Vectors. -- Jeff Carter "C++ is vast and dangerous, a sort of Mordor of programming languages." Jason R. Fruit 120