comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Renaming versus initialisation
Date: 27 Sep 2005 20:00:56 -0400
Date: 2005-09-27T20:00:56-04:00	[thread overview]
Message-ID: <wccbr2ekqmf.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: xzi_e.29736$NQ.3159@reader1.news.jippii.net

Tapio Kelloniemi <invalid@localhost.localdomain.com> writes:

> V1 : T := F;
> V2 : T renames F;
> 
> I'd like to see an explanation of the effect of an object renaming
> declaration versus variable declaration and initialisation, when the object
> being renamed is a return value of a function. Many thanks for it.

They are pretty similar.  Differences: V2 is a constant, but V1 is a
variable.  In Ada 95, V2 works for limited types, but V1 does not.
The rules about limited types are relaxed in Ada 2005.

- Bob



  reply	other threads:[~2005-09-28  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-27 21:10 Renaming versus initialisation Tapio Kelloniemi
2005-09-28  0:00 ` Robert A Duff [this message]
2005-09-28  8:02   ` Dmitry A. Kazakov
2005-09-28 15:12     ` Tapio Kelloniemi
2005-09-28 16:37       ` Dmitry A. Kazakov
2005-09-28 18:53         ` Jeffrey R. Carter
replies disabled

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