From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.114.66 with SMTP id je2mr1498029igb.5.1386353002634; Fri, 06 Dec 2013 10:03:22 -0800 (PST) X-Received: by 10.49.25.103 with SMTP id b7mr100825qeg.19.1386353002560; Fri, 06 Dec 2013 10:03:22 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!p15no8299413qaj.0!news-out.google.com!p7ni11401qat.0!nntp.google.com!p15no8299404qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 6 Dec 2013 10:03:22 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.7.3.209; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.7.3.209 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5be1365a-8c91-4bab-a348-f9ada7dd5a1a@googlegroups.com> Subject: Re: Renaming vs assignment to constant From: AdaMagica Injection-Date: Fri, 06 Dec 2013 18:03:22 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:17873 Date: 2013-12-06T10:03:22-08:00 List-Id: For limited types, the constant is impossible. For function calls, renaming gives the anonymous object a name, the constant is a copy of the anonymous object. But with optimization, the anonymous object may disappear and the constant built in place. So no difference. For controlled types, there might be a difference (side effects).