From: Simon Wright <simon@pushface.org>
Subject: Renaming vs assignment to constant
Date: Fri, 06 Dec 2013 15:14:51 +0000
Date: 2013-12-06T15:14:51+00:00 [thread overview]
Message-ID: <lypppaj9jo.fsf@pushface.org> (raw)
A poster on Stack Overflow wrote
Now : Time renames Clock;
(using Ada.Calendar) which made me blink until I realised that it is the
equivalent of
Now : constant Time := Clock;
GNAT generates the same code for these two forms. Is there a difference?
Which form is preferred?
next reply other threads:[~2013-12-06 15:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-06 15:14 Simon Wright [this message]
2013-12-06 16:09 ` Renaming vs assignment to constant 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
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