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 18:00:42 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Al Christians Newsgroups: comp.lang.ada Subject: Re: GNAT 3.14 NEW FEATURES LIST Current as of May 30th, 2001 Date: Fri, 29 Jun 2001 18:04:03 -0700 Organization: Trillium Resources Corporation Message-ID: <3B3D2583.2928C69D@easystreet.com> X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 References: <3B3C86C7.6C780F67@easystreet.com> <3B3D1CB6.BEAFCF4@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:9275 Date: 2001-06-29T18:04:03-07:00 List-Id: Any idea if it is possible and/or likely that the 3.14p compiler will shoot us a heads up in situations where we may have done this. I've used slice quite a bit. I remember wondering about which way this came back, so it is likely that I have some code somewhere that depends on what GNAT was doing, although I can't remember where or when. How many Ada programmers does it take to slice himself in the foot? Al Jeffrey Carter wrote: > > 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. >