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-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Copying rows in a two dimensional array. Date: Tue, 09 Feb 2010 09:26:52 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4b70821a$0$911$ba4acef3@news.orange.fr> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1265725600 24817 192.74.137.71 (9 Feb 2010 14:26:40 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 9 Feb 2010 14:26:40 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:/D4jfX/9OpduxHff4LJn1enSC+o= Xref: g2news1.google.com comp.lang.ada:9032 Date: 2010-02-09T09:26:52-05:00 List-Id: Pascal Obry writes: > 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 just did some searching in the GNAT sources. About a million lines of code. About 7000 slices. About 1500 slices on the left of ":=". Warning: this is a crude search -- I probably have both false positives and false negatives. I must admit, these are higher numbers than I expected. Almost all of them look like strings, at a quick glance. > I would say that slices are really what make life easier in Ada compared > to other languages in many ways. OK, but I'm not comparing them to other languages. I'm comparing them to other features of Ada (or other features that I'd like to see in Ada). - Bob