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!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Dereferencing and style guides Date: Fri, 18 Oct 2013 21:36:21 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <5249ab97$0$6625$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1382150182 28420 69.95.181.76 (19 Oct 2013 02:36:22 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 19 Oct 2013 02:36:22 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:17467 Date: 2013-10-18T21:36:21-05:00 List-Id: "Robert A Duff" wrote in message news:wccob70twny.fsf@shell01.TheWorld.com... ... > I like the syntax of Pascal: If X is a pointer, then "X" denotes that > pointer, "X^" denotes the object it points at (all of it!), and "X^.Y" > denotes the Y component of the object X points at (again, all of that > component!). And "X.Y" is illegal. Wasn't '^' one of the characters that weren't allowed to be used in Ada 83 because they were not on ancient keypunches? That's probably the reason for not using that character. But I'd be very unhappy if we required it. The fact that it is *not* required is very important to giving the illusion that you can index a container object directly in Ada 2012 (and modify the elements in place). And in general, you don't really want to expose the fact that access types are used in reference objects -- the idea is to allow direct modifications of the object -- the mechanism used to achieve that should be irrelevant (especially to a reader). Ergo, you never really want to write ".all", because if you have to, you're using too many access types in your program. :-) Randy.