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!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Dereferencing and style guides Date: Mon, 30 Sep 2013 09:13:59 +0200 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: IenaDxMXK2hi7fvYcb+MlQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:17349 Date: 2013-09-30T09:13:59+02:00 List-Id: On Mon, 30 Sep 2013 06:35:09 +0000 (UTC), Natasha Kerensikova wrote: > So what do you think about the topic? > Are there other people here favoring non-mandatory .all? > Have I missed some guidelines and rationals discussion the question? I don't believe many would agree, but anyway. From my point of view a referential type (such as access type) represents a subtype of the target type. Therefore there should be no .all or any other explicit dereferencing operation, because this is not the parent's type operation. For the same reason := should have mean deep assignment not the shallow one as in Ada. For shallow assignment there should have been another operation here, or overloaded :=, e.g. type T is ...; type T_Ptr is access T; X, Y := T_Ptr; begin X := Y; -- Deep copy X := Y'Access; -- Shallow copy -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de