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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.17.74 with SMTP id 71mr1190629itf.8.1467402639636; Fri, 01 Jul 2016 12:50:39 -0700 (PDT) X-Received: by 10.157.39.133 with SMTP id c5mr940335otb.6.1467402639573; Fri, 01 Jul 2016 12:50:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!r1no8632837ige.0!news-out.google.com!o189ni14168ith.0!nntp.google.com!jk6no8611280igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Jul 2016 12:50:39 -0700 (PDT) In-Reply-To: <66c14298-c62d-4f4b-b0c0-e969454f9334@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=104.169.172.64; posting-account=Ies7ywoAAACcdHZMiIRy0M84lcJvfxwg NNTP-Posting-Host: 104.169.172.64 References: <66c14298-c62d-4f4b-b0c0-e969454f9334@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3f7651d5-51aa-4f6b-b468-a784b91515ea@googlegroups.com> Subject: Re: Generic Embedded List Nodes From: brbarkstrom@gmail.com Injection-Date: Fri, 01 Jul 2016 19:50:39 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:30996 Date: 2016-07-01T12:50:39-07:00 List-Id: Another suggestion is to add a numerical index to each node, as well as some identifier (maybe a string or some other suitable type), and use a hash function to calculate the index from the identifier. Assuming you also use Ada access variable to link the nodes together, this might be a useful way to implement the type of design you seem to have in mind. Linkages in a triply linked list (see Knuth, Vol I index) can be handled this way, so you can have hierarchical structures. Bruce B.