From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Renaming primitives. Date: Fri, 12 Jan 2024 05:47:41 -0400 Organization: Adalog Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 12 Jan 2024 09:47:41 -0000 (UTC) Injection-Info: dont-email.me; posting-host="d8e379d233460a2a2bd53fe695002736"; logging-data="3595247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19v+BSWU/VpDO36BeBh05JO" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:m/dAwhWEFjMhDCKqW/unKNGzKVU= Content-Language: en-US, fr In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65987 List-Id: Le 11/01/2024 à 23:59, Randy Brukardt a écrit : > Shouldn't be correct. The "name" is evaluated during a renaming, and the > renamed entity does not change afterwards. So whatever subprogram My_Log_3 > designates for the first call should be the same for the second call. Just to make things perfectly clear (I hope): Renames shouldn't be seen as a kind of macro (i.e. textual substitution of the LHS by the RHS). It is rather like evaluating the address of the RHS thing, and storing it into the LHS. A kind of precalculated address/pointer/reference. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX https://www.adalog.fr https://www.adacontrol.fr