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,7a1691a2185bb3e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-19 09:20:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-peer0!btnet-peer!btnet!newspeer.clara.net!news.clara.net!peernews!peer.cwci.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail Sender: mjw@golux Newsgroups: comp.lang.ada Subject: Re: Bounds of Slice's return value References: <87bsfrcksf.fsf@chiark.greenend.org.uk> <3C48CAC8.AF186C93@acm.org> <87adva7h6k.fsf@chiark.greenend.org.uk> From: Matthew Woodcraft Message-ID: <87n0za6yx6.fsf@chiark.greenend.org.uk> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: 19 Jan 2002 17:19:49 +0000 NNTP-Posting-Host: 213.107.104.73 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1011460796 213.107.104.73 (Sat, 19 Jan 2002 17:19:56 GMT) NNTP-Posting-Date: Sat, 19 Jan 2002 17:19:56 GMT Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:19103 Date: 2002-01-19T17:19:49+00:00 List-Id: Robert A Duff writes: > Matthew Woodcraft writes: > > Thanks. I'm glad they're nailing it down; it seems to be a needless > > source of hard-to-spot errors, otherwise. > The fact that Ada allows strings to start at other than 1, depending > on where they came from, is a "needless source of hard-to-spot errors" > even in cases where it *is* nailed down. Sigh. I agree it's an unpleasant source of errors. But it's only needless if there's a fix available. Perhaps saying that strings are just arrays of characters isn't such a good idea? Or do you think arrays with differing lower bounds are the trouble? -M-