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 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Copying rows in a two dimensional array. Date: Tue, 09 Feb 2010 09:56:31 +0100 Organization: Adalog Message-ID: <308rkh.mij.ln@hunter.axlog.fr> References: <4b70821a$0$911$ba4acef3@news.orange.fr> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1265705685 29798 195.25.228.57 (9 Feb 2010 08:54:45 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 9 Feb 2010 08:54:45 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <4b70821a$0$911$ba4acef3@news.orange.fr> Xref: g2news1.google.com comp.lang.ada:9021 Date: 2010-02-09T09:56:31+01:00 List-Id: Pascal Obry a �crit : > 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. > And don't forget: S (A .. B) := (others => 0); Enough with loop and loops at the lowest level! Thanks to slices, you can really manipulate arrays as high level objects, without always going down inside! Now, I am sure someone will tell: "but that doesn't go as far as multidimensional arrays...". True. Look at the syntax for Fortran slices, and you'll see that the cure would be worth than the disease. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr