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.6 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,UNCLOSED_BRACKET 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!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Message-Id: <4b6764f8$0$4582$4d3efbfe@news.sover.net> From: "Peter C. Chapin" Subject: Re: Copying rows in a two dimensional array. Newsgroups: comp.lang.ada Date: Mon, 01 Feb 2010 18:36:52 -0500 References: <4b6637a1$0$4586$4d3efbfe@news.sover.net> <4b667ac4$0$6289$4f793bc4@news.tdc.fi> User-Agent: KNode/0.10.9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Organization: SoVerNet (sover.net) NNTP-Posting-Host: b5745bd7.news.sover.net X-Trace: DXC=OD[_YLZfYS=[oSJ=8Q]]P1K6_LM2JZB_3J1no3TDO0<5:WUUlR<856?N_\[n8QFY17ShjA2XcN@[9 X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:8849 Date: 2010-02-01T18:36:52-05:00 List-Id: Niklas Holsti wrote: > Another solution -- which perhaps you have considered -- is to use a > generic package to define row and matrix types: > > generic Size : Positive; > package Matrices > is > type Row is array (1 .. Size) of Float; > type Matrix is array (1 .. Size) of Row; > end Matrices; > > However, this will probably force some other parts of your code to > become generic, too, parametrized either by a Size, or by an instance of > Matrices. > Actually I hadn't considered this, but such an approach might work well for me. I'll have to consider it more. Thanks! Peter