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 08:53:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!elvis.franken.de!chico.franken.de!uni-erlangen.de!news-nue1.dfn.de!news-han1.dfn.de!news.fh-hannover.de!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: ada.strings.bounded slice errors Date: Sun, 18 Nov 2001 18:16:50 +0100 Organization: Enyo's not your organization Message-ID: <876688f18d.fsf@deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cancel-Lock: sha1:/HBOah0WIJCj7NHy+NbOTx3UQPY= Xref: archiver1.google.com comp.lang.ada:16673 Date: 2001-11-18T18:16:50+01:00 List-Id: tmoran@acm.org writes: > What should Slice(S, Low, High) do in the various cases: > S is null Do you mean S = ""? Then Length (S) = 0, and you can apply the rules below. > Low > S'last+1 (You mean "Low > Length (S) + 1".) Index_Error is propagated. > High > S'last Index_Error is propagated, but this was added in TC 1, the original Ada 95 RM didn't require this.