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.58.169.81 with SMTP id ac17mr2406168vec.15.1386373721694; Fri, 06 Dec 2013 15:48:41 -0800 (PST) X-Received: by 10.50.109.197 with SMTP id hu5mr109502igb.16.1386373721615; Fri, 06 Dec 2013 15:48:41 -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!eu.feeder.erje.net!feeder.erje.net!us.feeder.erje.net!news.glorb.com!p15no8876943qaj.0!news-out.google.com!p7ni11420qat.0!nntp.google.com!bm17no17203856qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 6 Dec 2013 15:48:41 -0800 (PST) In-Reply-To: <361fb7d4-d22e-4ac3-a307-48108c4f8eb0@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <361fb7d4-d22e-4ac3-a307-48108c4f8eb0@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <030e719b-05ec-43ef-9d01-d2c473350704@googlegroups.com> Subject: Re: Renaming vs assignment to constant From: adambeneschan@gmail.com Injection-Date: Fri, 06 Dec 2013 23:48:41 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:17884 Date: 2013-12-06T15:48:41-08:00 List-Id: On Friday, December 6, 2013 1:59:21 PM UTC-8, Shark8 wrote: > I think the big difference happens when the result has subcomponents: > ch : constant Character:= 'X'; -- Character X. > temp : String renames Character'Image(ch); -- Its image: 'X'. > ch2 : Character renames temp(2); -- The unquoted character. What is the big difference between that and ch : constant Character:= 'X'; -- Character X. temp : constant String := Character'Image(ch); -- Its image: 'X'. ch2 : Character renames temp(2); -- The unquoted character. ??? Maybe I'm having a bad day, but I don't see it. -- Adam