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,978f50245fc02645 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Slice and Unbounded String Date: 1996/11/27 Message-ID: #1/1 X-Deja-AN: 201117812 references: <01bbdc70$2e557160$262a6282@cln49ae> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-11-27T00:00:00+00:00 List-Id: In article <01bbdc70$2e557160$262a6282@cln49ae>, Pascal Obry wrote: >S := Ada.Strings.Unbounded.Slice (U, 6, 8); > >Should S have a range 6 .. 8 or a range 1 .. 3. See A.4.5(82), A.4.4(101), A.4.4(1) "whose low bound is 1", A.4.3(2), and AI-128. The correct result is 1..3. (Life would be easier if type String behaved that way, so all Strings were 1..something -- not so.) - Bob