From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Proposal: Auto-allocation of Indefinite Objects Date: Fri, 21 Aug 2020 08:45:45 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <8a502b6c-4609-4cd8-b292-5797fe6421e1n@googlegroups.com> NNTP-Posting-Host: 2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:59773 List-Id: On 21/08/2020 01:33, Randy Brukardt wrote: > "Dennis Lee Bieber" wrote in message > news:mkmtjflufgmatkk3hp25nvk2hoogun1fis@4ax.com... >> On Thu, 20 Aug 2020 19:49:44 +0200, "Dmitry A. Kazakov" >> declaimed the following: >> >>> >>> But records and arrays are needed as building blocks of containers. How >>> would you get rid of them? >> >> And likely needed for any embedded or low-level work where they are >> mapped to things like (GP) I/O ports or such... > > Yes, a fixed vector container would be needed for interfacing (probably > wouldn't use it for anything else). But there's no reason that can't be > provided as a container, so long as representation guarentees (esp. > Component_Size) are included. Remember that containers (in Ada 202x) have > indexing, aggregates, and all of the useful basic operations. The stuff > that's missing is the same stuff that adds a vast amount of complexity to > Ada (and possibilities for bugs) - hardly anyone would miss it. Really? I would miss array conversions, slices, equivalence of same length index ranges, constrained array subtypes etc. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de