From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE, XPRIO autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: New aggregates with Ada 2022. Date: Thu, 30 Jun 2022 00:00:34 -0500 Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Thu, 30 Jun 2022 05:00:36 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="8f16bde40f2e228477f06b32f394b010"; logging-data="1807513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FtMWOj32vwvJEwH8Que+W4qISNejB/RE=" Cancel-Lock: sha1:VYN+alwOaEnJ9u1I+sMH82I8zjA= X-MSMail-Priority: Normal X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:64054 List-Id: "Dmitry A. Kazakov" wrote in message news:t9gunm$97a$1@gioia.aioe.org... > On 2022-06-29 06:07, Randy Brukardt wrote: >> What you say here is precisely how they should work. But you would make >> the >> cost of supporting that necessary on every array object, because one >> could >> not know when an array is passed as a parameter what sort of >> representation >> it has. So one has to use dispatching helper operations to implement all >> assignments. And that's way more expensive than traditional array >> implementation. > > It is already there because Ada 83 arrays have definite and indefinite > representations. Adding a user-defined representation on top is nothing. Actually, it changes everything. Array descriptors are easy, indeed, for many years Janus/Ada represented all arrays the same (an indefinite representation with a small descriptor containing a pointer at a data area). Changing the representation of the underlying data is where the cost is. Randy.