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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: grassroots thoughts on access types Date: Sat, 10 Feb 2018 16:51:15 +0000 Organization: A noiseless patient Spider Message-ID: References: <5d9134c9-a7d4-468e-8685-ebbb393eabea@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="3f0772393081e6fad0b3e0b589a62a8b"; logging-data="31817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hZmppGSrsU6q+9oLSDeteWiKShMjJ8xw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:YiOFpD/5GSmuaFhT7ie1jG86t0I= sha1:+6YR+Vp2jDQijwGMlXHGNUxiijk= Xref: reader02.eternal-september.org comp.lang.ada:50373 Date: 2018-02-10T16:51:15+00:00 List-Id: "Dmitry A. Kazakov" writes: > On 2018-02-10 12:55, Mehdi Saada wrote: >>> Cursors (= pointers) >> Based on GNAT RM, "a Cursor, which must a be a type declared in the >> container package or visible from it". That's all there is mentioned >> about the cursor type. Hence, it doesn't have to involve access >> types. >> Either I'm right, either I'm wrong, but the RM is unclear. > > It is semantically a pointer, an object that directly references > another object. And it contains a reference to the container it's a cursor for.