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!news4.google.com!proxad.net!feeder1-2.proxad.net!193.252.117.184.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Date: Mon, 08 Feb 2010 22:29:51 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Copying rows in a two dimensional array. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4b70821a$0$911$ba4acef3@news.orange.fr> NNTP-Posting-Date: 08 Feb 2010 22:28:58 CET NNTP-Posting-Host: 82.124.147.129 X-Trace: 1265664538 news.orange.fr 911 82.124.147.129:4163 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:8999 Date: 2010-02-08T22:28:58+01:00 List-Id: Bob, > OK, I guess I shouldn't have said "least useful". I should have > said that it's easy enough to work around the lack of this > feature. In my experience, almost all slices are of > type String. And almost all are R-values. So a function: > > function Slice (S: String; First: Positive; Last: Natural) return String; I beg to disagree strongly to that too :) I have lot of code like this one: S (A .. B) := R (C .. D); or S (A .. B) := V; I would say that slices are really what make life easier in Ada compared to other languages in many ways. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B