comp.lang.ada
 help / color / mirror / Atom feed
* Renaming vs assignment to constant
@ 2013-12-06 15:14 Simon Wright
  2013-12-06 16:09 ` Jeffrey Carter
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Simon Wright @ 2013-12-06 15:14 UTC (permalink / 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?

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-12-07  9:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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