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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5cb36983754f64da X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,304c86061dc69dba X-Google-Attributes: gid109fba,public X-Google-Thread: f5d71,304c86061dc69dba X-Google-Attributes: gidf5d71,public X-Google-Thread: 1014db,304c86061dc69dba X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 2004-02-11 08:15:08 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!shaw.ca!news-out1.nntp.be!propagator4-cogent.newsfeed.com!propagator2-sterling!in.nntp.be!news.codefab.com!att541!att542!ip.att.net!newsfeed3.global.lmco.com!svlnews.lmms.lmco.com!not-for-mail From: "Xenos" Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java Subject: Re: No call for Ada (was Re: Announcing new scripting/prototyping language) Date: Wed, 11 Feb 2004 11:06:03 -0500 Organization: Lockheed Martin Corporation Message-ID: References: <20040206174017.7E84F4C4114@lovelace.ada-france.org> <54759e7e.0402071124.322ea376@posting.google.com> <2460735.u7KiuvdgQP@linux1.krischik.com> <54759e7e.0402081525.50c7adae@posting.google.com> <54759e7e.0402091826.2847e0c@posting.google.com> <54759e7e.0402101819.95cec1d@posting.google.com> NNTP-Posting-Host: 158.187.68.119 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Xref: archiver1.google.com comp.lang.ada:5441 comp.lang.c:21898 comp.lang.c++:18709 comp.lang.java:2857 Date: 2004-02-11T11:06:03-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:qdqj20lomb5865p7qb24eojpgk7ijpbikr@4ax.com... > On 10 Feb 2004 18:19:13 -0800, msg1825@yahoo.com (MSG) wrote: > > is in fact to copy a string. If it would, it could then apply a > corresponding target CISC machine instruction. In Ada it is easier for > the compiler: > > T : String (...); > S : String (...); > > T := S; > > Even if you work at the array abstraction level: > > for I in S'Range loop > T (I) := S (I); > end loop; > But of course, the first example will only work if S'Length is equal to T'Length or it will raise a constraint_error. The second will only work if T'Length is greater than or equal to S'Length. DrX