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!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Intervention needed? Date: Tue, 19 Mar 2019 15:22:58 -0700 Organization: A noiseless patient Spider Message-ID: <874l7y4i7x.fsf@nightsong.com> References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com> <6f9ea847-2903-48c8-9afc-930201f2765a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="fae3a525a353552e1467f1269cb4ae18"; logging-data="17642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19C8XNXgexqr0B2EZrG0tY/" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:fGR6k0AMn6+LuXIOXfPVMOms3r0= sha1:rfGkFlABhHQTqKxs2oBZ7wCkfUc= Xref: reader01.eternal-september.org comp.lang.ada:55901 Date: 2019-03-19T15:22:58-07:00 List-Id: "Randy Brukardt" writes: > A lot of what the ownership scheme does well isn't really necessary in > Ada in the first place, as one can use a discriminant-dependent > component to get the same effect without any pointers at all. Does that mean just some kind of tagged record? Of course that would work the same way in other languages, maybe with different surface syntax. > and singly-linked lists (which are just sequences of elements, can be > modeled as an array just as well as with a list). I think that's not so easy: a common practice with linked lists is to have multiple lists with different heads sharing the same tail. So there has to be some indirection.