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: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: How to get Ada to ?cross the chasm?? Date: Wed, 09 May 2018 00:23:23 -0700 Organization: A noiseless patient Spider Message-ID: <87bmdp47is.fsf@nightsong.com> References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <87in88m43h.fsf@nightsong.com> <87efiuope8.fsf@nightsong.com> <87lgd1heva.fsf@nightsong.com> <87zi1gz3kl.fsf@nightsong.com> <878t8x7k1j.fsf@nightsong.com> <87k1sg2qux.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="a15f8e13c869a4517dec92123a650d01"; logging-data="9131"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xCUuWugvQVUMlz7A8yXRr" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:f0VJetqlN959j8tpkfwPaAUbQPg= sha1:kMyenpRdXwOjqEqWijiD9x+w/+k= Xref: reader02.eternal-september.org comp.lang.ada:52147 Date: 2018-05-09T00:23:23-07:00 List-Id: "Dmitry A. Kazakov" writes: > Yes, but my argument is that it only hides the logical error. The > reference that is semantically weak acts as a strong one preventing > collection of an unused object. Circular references are never right. I don't see the issue here. Circular linked lists are a venerable data structure of which there are many assembly code examples in Knuth vol 1 from the 1960s. Similarly, graphs are data and some of them have cycles. Some algorithms might have trouble with cyclic data, but others handle it ok.