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: a07f3367d7,8e11100f675ea2df X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.80.41 with SMTP id o9mr10489186pax.4.1357876345824; Thu, 10 Jan 2013 19:52:25 -0800 (PST) Path: s9ni101038pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: asynchronous task communication Date: Mon, 07 Jan 2013 11:27:20 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <1c2dnd5E6PMDR33NnZ2dnUVZ_sednZ2d@earthlink.com> <50e18094$0$6583$9b4e6d93@newsspool3.arcor-online.net> <7NednS4s2oukfXzNnZ2dnUVZ_oadnZ2d@earthlink.com> <7cudnYloBfQDw3_NnZ2dnUVZ_rKdnZ2d@earthlink.com> <6bqdndEYjoxeGHnNnZ2dnUVZ_sadnZ2d@earthlink.com> Mime-Version: 1.0 Injection-Date: Mon, 7 Jan 2013 18:27:22 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="656ea2f23126f57fb36504d2d15a002c"; logging-data="25320"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dPAOakXJN1psuyWqKrESE7w0gBqCtNhs=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:namv+p7DBg9cRKlIl6zgkGDvvJA= Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2013-01-07T11:27:20-07:00 List-Id: On 01/07/2013 03:49 AM, Brian Drummond wrote: > > Then how do you maintain links from one such object to others, to build a > network or graph? You can access a vector element via a cursor - is it > safe and reasonable to store and use cursors to maintain references to an > object as the vector grows? A "vector" is an unbounded array. You access an array component using an index, and that is also how to reference a component of an unbounded array. The index of a specific component will not change unless the user specifically changes it (by inserting a component with a smaller index, for example). -- Jeff Carter "Now look, Col. Batguano, if that really is your name." Dr. Strangelove 31