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!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp1-1.free.fr!not-for-mail Subject: Re: renames usage Newsgroups: comp.lang.ada References: <5fedba8b$0$6186$426a74cc@news.free.fr> From: DrPi <314@drpi.fr> Date: Thu, 31 Dec 2020 16:55:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Message-ID: <5fedf478$0$21621$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 31 Dec 2020 16:55:36 CET NNTP-Posting-Host: 82.65.30.55 X-Trace: 1609430136 news-3.free.fr 21621 82.65.30.55:54357 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:60995 List-Id: Le 31/12/2020 à 15:49, Jeffrey R. Carter a écrit : > 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. > Good to know. What disturbed me was the function call associated with "renames".