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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9a7e0c43216f4def X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: "out" or "access" Date: 1998/11/03 Message-ID: #1/1 X-Deja-AN: 409131478 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <908956499.754394@dedale.pandemonium.fr> <70mo3h$gll$1@cf01.edf.fr> <71cjab$ka8$1@nnrp1.dejanews.com> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 910382829 nnrp-01:9541 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada Date: 1998-11-03T00:00:00+00:00 List-Id: Matthew Heaney writes: > I'm designing a data structure library --which I've been calling the Ada > Components Library-- which comprises pluggable units. You assemble the > data structure having the space & time characteristics you desire, from > a simpler set of primitives. (Sound like our favorite language?) [..] > From time-to-time, it's desirable to change the values of the items in > the data structure, without resorting to inefficient "solutions" like > copying the original data structure, and changing the source values > prior to insertion into the target structure. You just want to change > the values in place. Yes, I'm going through the same throes with the Booch Components at the moment. Having the ability to change components in place during iteration causes a whole lot of grief, in the BCs showing up as generic type Item is private; type Item_Ptr is access all Item; package BC.Containers is yecch