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,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 07 Jul 2005 12:38:57 +0200 From: Georg Bauhaus Organization: Home User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GCC 4.0 Ada.Containers Cursor danger. References: <1120474891.635131.216700@g44g2000cwa.googlegroups.com> <1120575076.876798.108220@g44g2000cwa.googlegroups.com> <1120583470.429264.325450@g43g2000cwa.googlegroups.com> <42cb8d21$0$22761$9b4e6d93@newsread2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42cd064c$0$10817$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Date: 07 Jul 2005 12:39:08 MEST NNTP-Posting-Host: 050d78d0.newsread4.arcor-online.net X-Trace: DXC=m>KOcd^7494j12nnM8XB1>:ejgIfPPld4jW\KbG]kaM8liQbn6H@_E9ZjSj2nZdaC4hP3YJKgE\j X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11925 Date: 2005-07-07T12:39:08+02:00 List-Id: Dmitry A. Kazakov wrote: > On Wed, 6 Jul 2005 18:07:38 -0500, Randy Brukardt wrote: >>>It is not clear to me what the semantics a cursor has. Is it a location in the container? >>It's not a location, and it wouldn't make sense for it to be one (other than >>for a Vector). > But it definitely refers to a location. Otherwise iteration using cursor > would be impossible. Why? A cursor designates an element. There are operations on cursors, some of them let us move a cursor from one element to another. Then the cursor designates another element. I don't think there an implied requirement to think of locations. type Cursor is private; private type Cursor is access function (c: Container) return Pointer; -- Georg