comp.lang.ada
 help / color / mirror / Atom feed
From: adambeneschan@gmail.com
Subject: Re: Renaming vs assignment to constant
Date: Fri, 6 Dec 2013 15:48:41 -0800 (PST)
Date: 2013-12-06T15:48:41-08:00	[thread overview]
Message-ID: <030e719b-05ec-43ef-9d01-d2c473350704@googlegroups.com> (raw)
In-Reply-To: <361fb7d4-d22e-4ac3-a307-48108c4f8eb0@googlegroups.com>

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

  reply	other threads:[~2013-12-06 23:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06 15:14 Renaming vs assignment to constant Simon Wright
2013-12-06 16:09 ` Jeffrey Carter
2013-12-06 18:03   ` AdaMagica
2013-12-06 18:24     ` Jeffrey Carter
2013-12-06 16:47 ` adambeneschan
2013-12-06 18:06   ` Eryndlia Mavourneen
2013-12-07  0:47   ` Randy Brukardt
2013-12-07  1:55     ` Shark8
2013-12-06 18:35 ` G.B.
2013-12-06 20:07   ` adambeneschan
2013-12-06 21:59 ` Shark8
2013-12-06 23:48   ` adambeneschan [this message]
2013-12-07  1:04     ` Shark8
2013-12-07  1:26       ` adambeneschan
2013-12-07  6:17       ` J-P. Rosen
2013-12-07  6:22         ` J-P. Rosen
2013-12-07  8:57   ` Dmitry A. Kazakov
2013-12-07  9:02     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox