From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: can't understand how to move a node of a linked list to another place on the same Date: Thu, 18 Feb 2021 16:09:57 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1b206764-967c-4b1b-af9c-61a0cd0750fcn@googlegroups.com> <84c3e8ee-e4e9-4402-8da6-e43a44eca66bn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 18 Feb 2021 15:09:57 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b603ba2826d4d6ac56845ec0b4fa0d32"; logging-data="24809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gcAi2U18pKIKQbD8vGmNNv1BA0W9EH/I=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cancel-Lock: sha1:YT4t5Cr+L4PV04fUp1WNcHHJcM4= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61377 List-Id: On 2/18/21 1:54 PM, Mehdi Saada wrote: > > procedure insertion_X_on_place_Y (Before_X, Before_Y: in t_List) is > A: constant t_List := Before_X.next; > Y: constant t_List := Before_Y.next; > Begin > Before_X.next := Before_X.next.next; > X.next := Y; > Before_Y.next := X; > end insertion_X_on_place_Y; What is X? -- Jeff Carter "I was hobbling along, minding my own business, all of a sudden, up he comes, cures me! One minute I'm a leper with a trade, next minute my livelihood's gone! Not so much as a 'by your leave!' You're cured, mate. Bloody do-gooder!" Monty Python's Life of Brian 76