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-Thread: 103376,db88d0444fafe8eb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Surprise in array concatenation Date: 06 Sep 2005 11:00:47 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1125610942.747981.280770@f14g2000cwb.googlegroups.com> <431d6095$0$24157$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1126018847 31207 192.74.137.71 (6 Sep 2005 15:00:47 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 6 Sep 2005 15:00:47 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:4474 Date: 2005-09-06T11:00:47-04:00 List-Id: Georg Bauhaus writes: > Robert A Duff wrote: > > > Slices should slide to the lower bound. The Ada rule breaks > > abstraction: > > I had thought that 'First and 'Last etc. are there just for > building an abstraction, not to break one. It might well be > that using 'First etc breaks people's habits or doesn't meet their > assumptions (rather concrete assumptions about string bounds?). > But how does it break the abstraction called String? It breaks the abstraction called "subprogram". As I showed in my example, a procedure is handed an integer value (X'First), which is an offset from the beginning of some object it knows nothing about, and should know nothing about. - Bob