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=ham 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!news1.google.com!feed-C.news.volia.net!volia.net!news2.volia.net!feed-A.news.volia.net!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Copying rows in a two dimensional array. Date: Mon, 1 Feb 2010 18:11:37 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <4b6637a1$0$4586$4d3efbfe@news.sover.net> <178rg3rch8qdu$.13cgkywb09x3p.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1265069497 32094 69.95.181.76 (2 Feb 2010 00:11:37 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 2 Feb 2010 00:11:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news1.google.com comp.lang.ada:8851 Date: 2010-02-01T18:11:37-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:178rg3rch8qdu$.13cgkywb09x3p.dlg@40tude.net... > 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. Early Ada 9x had discriminants for arrays. The capability got dropped when lots of "nice-to-have" features got dropped from Ada 95. Such "array" types have to be implemented as discriminant dependent records anyway; there is no real hope of performance improvement from them, but a lot of implementation complication. (I recall I was one of the stronger opponents of this feature, mostly for implementation cost/benefit reasons.) So it is completely wrong to say that "this was missed in the language design". The correct statement is that "this was explicitly rejected in the language design". Randy.