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,9fb8e2af320d5b3e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 30 Jun 2007 20:07:45 +0200 From: Georg Bauhaus Organization: # User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Bus error References: <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp> <1l4yqvxoid4n1.1u8eo4oo8ml4m$.dlg@40tude.net> <4685280c$0$14869$9b4e6d93@newsspool4.arcor-online.net> <4686432a$0$14873$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <46869b24$0$14879$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Date: 30 Jun 2007 20:04:21 CEST NNTP-Posting-Host: 2bb8bc8d.newsspool4.arcor-online.net X-Trace: DXC=S8ENT5L9Ki@74okIm;?DS@4IUK Dmitry A. Kazakov wrote: > On Sat, 30 Jun 2007 13:52:22 +0200, Georg Bauhaus wrote: > >> >> X1 : String renames Get_Line(Foo); >> X2 : String renames Get_Line(Bar); >> X3 : String renames Get_Line(Baz, Mode => Frobnicate); > > These examples show that the concept is just wrong. The above creates some > anonymous objects in background and then renames them. How to rename > something that does not have any name? Again, this is a wording question I think. I see value in labelling an object with a name when the language lets me do this (and I don't want to assign to a local constant). >>> But when I do: >>> >>> X : Element renames Collection (Key); >>> >>> I'd like to be certain that X indeed renames a container's element. >> Then I think there is a problem of choosing the right name for >> what you have called Collection here. > > Collection is a container, like an array, Key is an index. Is this better: > > Slice : String renames Line (10..20); And you want to be sure that Line (10 .. 20) indeed renames a character string of the array? > Yes, I have examples. You can take a look at > > http://www.dmitry-kazakov.de/ada/fuzzy.htm I'm starting to see why you are upset about generics. This will take some time to understand.