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: advent of code day 11 Date: Fri, 11 Dec 2020 20:07:06 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <86mtykp8yd.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 11 Dec 2020 19:07:08 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f94d07b268d8ced77c8d72d208d9a108"; logging-data="29237"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PHhBsChsl5T1bw71ge0xIyUATh9sPBWM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 Cancel-Lock: sha1:IXWzWJiViPxyhPWneVP8tometOc= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:60804 List-Id: On 12/11/20 7:24 PM, John Perry wrote: > > Source: Chart_Array renames Chart1; > Result: Chart_Array renames Chart2; > > while Changed loop > > Perform_Round( Source => Source , Result => Result , ... ); > declare Tmp: Chart_Array renames Source; > begin > Source := Result; > Result := Tmp; Renaming simply creates an additional way to name something. This should be the same as Chart1 := Chart2; Chart2 := Chart1; -- Jeff Carter "[I]f we should ever separate, my little plum, I want to give you one little bit of fatherly advice. ... Never give a sucker an even break." Poppy 97