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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Intervention needed? Date: Thu, 21 Mar 2019 21:16:22 -0500 Organization: JSA Research & Innovation Message-ID: References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com> <6f9ea847-2903-48c8-9afc-930201f2765a@googlegroups.com> <74339f3f-9591-45a3-8632-8834b4b466ab@googlegroups.com> Injection-Date: Fri, 22 Mar 2019 02:16:23 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="10802"; mail-complaints-to="news@jacob-sparre.dk" 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.7246 Xref: reader01.eternal-september.org comp.lang.ada:55921 Date: 2019-03-21T21:16:22-05:00 List-Id: "Optikos" wrote in message news:74339f3f-9591-45a3-8632-8834b4b466ab@googlegroups.com... ... >What you describe as (a[n ab]use case for) cursors is in reality >a pointer in the end, ... Not a pointer, since a pointer is essentially a raw machine address which cannot detect problems. I'd call it a reference, as the abstract way of designating something. And cursors can be and often are implemented so that the likelihood of an undetected dangling reference is low to impossible. That's not possible for any sort of pointer. (You can do the Rust thing and do some sort of compile-time rules, but that doesn't help build complex data structures.) I don't believe that it is possible to build a complex data structure like an Ada compiler without some form of references. One can argue about the form, but not the need. You have to be able to have long-lived connections between structures -- they could be strong or weak or a variety of other things, but you can't live without some form of references. Randy.