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: 103376,32d9aa9d79729b31 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.154.76 with SMTP id n12mr1962515bkw.1.1341304634274; Tue, 03 Jul 2012 01:37:14 -0700 (PDT) Path: y28ni10721bky.0!nntp.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Any easy/build-in construct to extract submatrices from larger matrix? Date: Tue, 3 Jul 2012 10:37:20 +0200 Organization: cbb software GmbH Message-ID: <18bqgllh2jdwg$.upj6crleq9nv$.dlg@40tude.net> References: <788af57d-750d-418d-94bb-75c6557e36a9@g4g2000pbn.googlegroups.com> <3f8db781-fd78-4505-837d-1811c0f9b96f@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 1819 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-03T10:37:20+02:00 List-Id: On Mon, 2 Jul 2012 23:22:46 -0500, Randy Brukardt wrote: > All which means that the result would be too complex to use for most people. Too complex compared to writing it manually? > Not to mention the extra overhead. Again, compared to what? Slices should be first class, that would remove the burden of implementation from compiler writers. The rest is just same problematic as with referencing single array/container element. There is no big difference for one element or a set of elements. The language should support that for all container types, array is one. Ada 2012 has a kludge for doing that by reference. There should be another for doing that using value semantics (copy-out, copy-in). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de