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.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, FREEMAIL_REPLY,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:7d42:0:b0:39c:dd3f:b74d with SMTP id h2-20020ac87d42000000b0039cdd3fb74dmr37022637qtb.279.1666796916806; Wed, 26 Oct 2022 08:08:36 -0700 (PDT) X-Received: by 2002:ac8:7d49:0:b0:399:d201:840b with SMTP id h9-20020ac87d49000000b00399d201840bmr37619460qtb.309.1666796916479; Wed, 26 Oct 2022 08:08:36 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 26 Oct 2022 08:08:36 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=94.31.101.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.101.23 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9dadc13d-3bda-4166-9e24-6634d36255ean@googlegroups.com> Subject: Re: 2-dimensional view on 1 dimensional array From: AdaMagica Injection-Date: Wed, 26 Oct 2022 15:08:36 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:64561 List-Id: ficorax@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 18:59:15 UTC+2: > I want just to know if it is possible to make different "view" on 1 > dimensional array. And of course I meant not 2-dimensional array but > array of arrays. Reason for that is that I want to use slicing on that view. > > Ok, here is full specification: > generic > type T is private; > type T_Array is array (Natural range <>) of aliased T; > type T_Array_Access is access all T_Array; > package Buffers is and so on ununderstandably. Have you ever heard of something like comments? Or more fundamentally, of design? This is just a lump of code fragments hurting my brain.