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 X-Google-Thread: 103376,fe965693e0a17ca8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-29 17:32:26 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B3D1CB6.BEAFCF4@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT 3.14 NEW FEATURES LIST Current as of May 30th, 2001 References: <3B3C86C7.6C780F67@easystreet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 30 Jun 2001 00:26:44 GMT NNTP-Posting-Host: 158.252.128.64 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 993860804 158.252.128.64 (Fri, 29 Jun 2001 17:26:44 PDT) NNTP-Posting-Date: Fri, 29 Jun 2001 17:26:44 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Fri, 29 Jun 2001 17:24:26 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:9274 Date: 2001-06-30T00:26:44+00:00 List-Id: Al Christians wrote: > > > NF-314-7910-004 Uniform behavior for Slice subprograms > > > > In packages Ada.Strings.Bounded/Ada.Strings.Unbounded, the Slice > > function now returns with the bounds of the slice expressions, > > rather than with a lower bound of 1.This was discussed in the ISO > > WG9 ARG, and it was agreed that this was the preferable approach. This > change also improves the efficiency of these two functions. > > Will that break much code written otherwise? Hopefully this will make the results of Slice have the same bounds with all compilers. As a test/example program, the PragmAda Reusable Components provides strm_sub.adb, which has to go to some effort to work properly regardless of the bounds returned by Slice. There is an AI to provide this behavior, but at the moment I don't remember its number or status. Well written code should not make assumptions about the bounds, and so will not be affected by this. Code that relies on GNAT returning a lower bound of 1 will break with this version, and with at least one other compiler. -- Jeff Carter "I wave my private parts at your aunties." Monty Python & the Holy Grail