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: renames usage Date: Thu, 31 Dec 2020 15:49:04 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <5fedba8b$0$6186$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 31 Dec 2020 14:49:04 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="760933d4240edbb0623e2e027aeb7ecd"; logging-data="7257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QwFir8FkYumN9ke/i7c+XqwRaZZyQ5ak=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 Cancel-Lock: sha1:R0G33J6XojjXlPR/5Ja95D6tTLo= In-Reply-To: <5fedba8b$0$6186$426a74cc@news.free.fr> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:60992 List-Id: On 12/31/20 12:48 PM, DrPi wrote: > > Tag   : String renames Elements.Get_Tag_Name (Child); > > Is it equivalent to the following line ? > > Tag   : String := Elements.Get_Tag_Name (Child); No. A function result is a constant, so the 1st version gives you a constant. The second gives you a variable with the same value. -- Jeff Carter "There has also been a widespread acceptance ... that program design is an important phase, too often neglected in the past." Elements of Programming Style 183