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,2e8cf506f89b5d0a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-18 11:31:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: ada.strings.bounded slice errors References: <876688f18d.fsf@deneb.enyo.de> X-Newsreader: Tom's custom newsreader Message-ID: Date: Sun, 18 Nov 2001 19:31:35 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1006111895 24.7.82.199 (Sun, 18 Nov 2001 11:31:35 PST) NNTP-Posting-Date: Sun, 18 Nov 2001 11:31:35 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:16675 Date: 2001-11-18T19:31:35+00:00 List-Id: > > Low > S'last+1 > > (You mean "Low > Length (S) + 1".) > > Index_Error is propagated. So I should be seeing Ada.Strings.Index_Error, and not Constraint_Error. Hmm. And Slice(Null_Bounded_String,1,0) = Slice(Null_Bounded_String,1,1) = "" > > High > S'last > > Index_Error is propagated, but this was added in TC 1, the original > Ada 95 RM didn't require this. Ah, that explains another part of the problem. And Slice(Null_Bounded_String,1,2) originally could return "", but now should raise Ada.Strings.Index_Error.