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!postnews.google.com!c4g2000yqa.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Copying rows in a two dimensional array. Date: Tue, 9 Feb 2010 00:14:17 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <12ezqn0wq0lmm$.s7nr5aueiwa4$.dlg@40tude.net> <4b710a6c$0$927$ba4acef3@news.orange.fr> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265703257 3582 127.0.0.1 (9 Feb 2010 08:14:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Feb 2010 08:14:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c4g2000yqa.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9019 Date: 2010-02-09T00:14:17-08:00 List-Id: > A pattern that I have used in some applications. I have an application > that output structured strings, so I use something like that: > > =A0 =A0type Index is range 1 .. 100; > =A0 =A0type Output is new String (Index); > > =A0 =A0subtype Label =A0 =A0is Index range 1 .. 10; > =A0 =A0subtype Code =A0 =A0 is Index range 12 .. 18; > =A0 =A0subtype Category is Index range 35 .. 50; > =A0 =A0... > > You get the idea... Then the code is simply: > > =A0 =A0Put_Line (Line (Category)); This is a pattern I have used myself. So there's a strong opposition to "useless slices" among Ada's aficionados.