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=unavailable 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: Thu, 6 Aug 2015 07:00:24 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <12wxvkghwgpw3.k4qf1rqnppjb$.dlg@40tude.net> <8b424e66-337a-4943-91d1-e421312b5c95@googlegroups.com> <186o8cox1jqwa.yahqsx8p0k84$.dlg@40tude.net> <3341271b-4926-40cb-a9aa-660522d56f24@googlegroups.com> <46bc62f8-db8d-4e09-88b9-555e4eb285ba@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 6 Aug 2015 07:00:24 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="3ddf5d4263586f4c03eec008fe9e599b"; logging-data="25040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yzjbVrWxdw2f2kejK28MDUKBngCNbyt8=" User-Agent: NewsTap/4.0.1 (iPhone/iPod Touch) Cancel-Lock: sha1:npaDaObvHqw1Y5P/oN4OrPdaFbI= Xref: news.eternal-september.org comp.lang.ada:27370 Date: 2015-08-06T07:00:24+00:00 List-Id: "Dmitry A. Kazakov" wrote: > On Wed, 5 Aug 2015 10:51:36 -0700 (PDT), Serge Robyns wrote: > >> Limited objects is one of these things I'm struggling getting my head >> around. I will need to (re)read about it to fully understand their >> purpose as for now I perceive them as a pain. > > Limited object is an object with an identity (inside its value). That is > why you cannot copy it. It is neither a pain or bliss, just an aspect of > design. Some things have identity some don't, you choose the type > appropriately. Invariable identity may be more suggestive. Like Earth and Mars: you may change them, but cannot change Mars to be like Earth and then have it take Earth's place. That is, Mars stays Mars no matter how you'd change it.