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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Design of cross referring types/classes and proper usage of containers Date: Mon, 03 Aug 2015 22:17:22 +0200 Organization: A noiseless patient Spider Message-ID: References: <227c1c59-44b3-483a-9e90-597004a05e81@googlegroups.com> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 3 Aug 2015 20:15:41 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b2986b3fd4ca73ac511a1185a96c5aa7"; logging-data="25330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OB3rMHY/BAJC8YE+/SDRpoDxYDZiYq2Y=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <227c1c59-44b3-483a-9e90-597004a05e81@googlegroups.com> Cancel-Lock: sha1:WuEkBxpy8jnBM63Sew9x0c98rrc= Xref: news.eternal-september.org comp.lang.ada:27345 Date: 2015-08-03T22:17:22+02:00 List-Id: On 03.08.15 18:14, Serge Robyns wrote: > And I forgot to mention, I'm trying to avoid access as much as possible, where it makes sense. In my C-days, I would have independant containers and use references/pointers. Another technique will model the mutual relationship in a third type dedicated to the purpose.