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!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Generic Embedded List Nodes Date: Sat, 18 Jun 2016 20:04:35 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <66c14298-c62d-4f4b-b0c0-e969454f9334@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Jun 2016 03:04:41 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="48b46be33beed75863f69afa437f956b"; logging-data="21276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184JHCzbE1zgIbBndSlfbHrapqpE/RkYhk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: Cancel-Lock: sha1:EpxSso2FHXFtNSHi3OgvRdptPwg= Xref: news.eternal-september.org comp.lang.ada:30805 Date: 2016-06-18T20:04:35-07:00 List-Id: On 06/18/2016 07:15 PM, Warren wrote: > On Saturday, 18 June 2016 19:40:31 UTC-4, Jeffrey R. Carter wrote: >> >> Let me make sure I understand this. You have type Emb_Node, and you can string >> Emb_Nodes together to make a list. > > Yes. > >> You want to make a composite type with an >> Emb_Node component: > > Yes. > >> and declare objects of this type: > > Yes. > >> and then be able to string the Node components of all these Outers together into >> a list, and then treat that list as a list of Outers. >> >> Is that correct? > > Essentially, yes. That's a terrible idea. It sounds like something that only someone who thinks doing "some offset calculation from the node address back to the owning struct/class" is a good idea would think up. -- Jeff Carter "My legs are gray, my ears are gnarled, my eyes are old and bent." Monty Python's Life of Brian 81