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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,bf03d731a6ef511f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.freenet.ag!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Copying rows in a two dimensional array. Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4b6637a1$0$4586$4d3efbfe@news.sover.net> Date: Mon, 1 Feb 2010 09:37:57 +0100 Message-ID: <178rg3rch8qdu$.13cgkywb09x3p.dlg@40tude.net> NNTP-Posting-Date: 01 Feb 2010 09:37:57 CET NNTP-Posting-Host: 9085eb26.newsspool4.arcor-online.net X-Trace: DXC=jJMFmC]HYI@02Sh8E_NfIA4IUKOB@U78Ld;:FK X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8845 Date: 2010-02-01T09:37:57+01:00 List-Id: On Sun, 31 Jan 2010 21:11:12 -0500, Peter C. Chapin wrote: > So I thought, "Perhaps A needs to be an array of arrays." > > type Matrix is array(Positive range <>) of WHAT_EXACTLY? > > Apparently the component type of an array needs to be fully constrained (which > again makes sense) Not really. Arrays should have been allowed to have discriminants. That was missed in the language design. If they had discriminants you could write: type Row is array (Positive range <>) of Float; type Matrix (Width : Positive) is array (Positive range <>) of Row (1..Width); (Of course the array bounds should have been discriminants rather than attributes) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de