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.236.51.9 with SMTP id a9mr39267715yhc.41.1386379609358; Fri, 06 Dec 2013 17:26:49 -0800 (PST) X-Received: by 10.50.103.71 with SMTP id fu7mr114734igb.1.1386379609321; Fri, 06 Dec 2013 17:26:49 -0800 (PST) Path: border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!p15no9006599qaj.0!news-out.google.com!9ni2660qaf.0!nntp.google.com!p15no9006592qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 6 Dec 2013 17:26:48 -0800 (PST) In-Reply-To: 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> <030e719b-05ec-43ef-9d01-d2c473350704@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8d3ce1a5-c349-4288-b71e-cd3875ffff04@googlegroups.com> Subject: Re: Renaming vs assignment to constant From: adambeneschan@gmail.com Injection-Date: Sat, 07 Dec 2013 01:26:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:184120 Date: 2013-12-06T17:26:48-08:00 List-Id: On Friday, December 6, 2013 5:04:18 PM UTC-8, Shark8 wrote: > On Friday, December 6, 2013 4:48:41 PM UTC-7, adambe...@gmail.com wrote: >=20 > >=20 >=20 > > > I think the big difference happens when the result has subcomponents: >=20 > > > ch : constant Character:=3D 'X'; -- Character X. > > > temp : String renames Character'Image(ch); -- Its image: 'X'. > > > ch2 : Character renames temp(2); -- The unquoted char= acter. >=20 > Size of Ch: Assuming 8. > Size of temp: 24 + Bounds(assuming 64). > Size of Ch2: None, it's a reference-to/alias-of Temp(2). >=20 > Total 96 bits. >=20 >=20 > > What is the big difference between that and > > ch : constant Character:=3D 'X'; -- Character X. > > temp : constant String :=3D Character'Image(ch); -- Its image: 'X'= . > > ch2 : constant Character :=3D temp(2); -- The unquoted c= haracter. Ummm, no, you changed it. I kept the "renames" in the declaration of ch2; = I only changed the declaration of "temp" from your earlier post. Since thi= s thread is about the difference is declaring an object that renames a func= tion result, and declaring a constant object that's assigned to a function = result, I think discussing a rename of a subcomponent is off-topic for this= thread. -- Adam