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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b41c04fc501479d6 X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: Lower bound of result of Ada.Strings.Unbounded.Slice Date: 2000/11/23 Message-ID: <3A1CD797.51D18865@acm.org>#1/1 X-Deja-AN: 696986100 Content-Transfer-Encoding: 7bit References: <3A1B087B.D45A8751@acm.org> <8vfjr1$t85$1@nnrp1.deja.com> <3A1C4F45.26F41F0D@acm.org> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 974968730 199.174.144.200 (Thu, 23 Nov 2000 00:38:50 PST) Organization: EarthLink Inc. -- http://www.EarthLink.net MIME-Version: 1.0 NNTP-Posting-Date: Thu, 23 Nov 2000 00:38:50 PST Newsgroups: comp.lang.ada Date: 2000-11-23T00:00:00+00:00 List-Id: Randy Brukardt wrote: > The correct AI to look at is AI-00238. It asks this exact question. You > will note, however, that this is a work item AI which has not yet been > considered by the full ARG. (It wasn't discussed at the recent meeting). > The write-up is based on E-Mail discussion and aan existing > implementation survey. Thanks for pointing this out to me. > The e-mail in the appendix is interesting; it is awful long for such a > simple issue! It certainly is interesting. FWIW, this is the first time I have needed Slice, and I assumed the same bounds as To_String (U) (Low .. High). I was using GNAT, so I got bit. Since the ARM has nothing to say on the bounds, I tested it with another compiler and saw that its results differed. > Anyway, I think it wouldn't be too prudent to depend on any particular > bounds from Slice until this issue is resolved. I try to avoid compiler dependencies. The work around is fairly straight forward: declare S : constant String (Low .. High) := Slice (U, Low, High); begin Statements where you would like to use Slice directly end; -- Jeff Carter "Hello! Smelly English K...niggets." Monty Python & the Holy Grail