Re: Renaming versus initialisation
- From: Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx>
- Date: 27 Sep 2005 20:00:56 -0400
Tapio Kelloniemi <invalid@xxxxxxxxxxxxxxxxxxxxxxxxx> 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
.
- Follow-Ups:
- Re: Renaming versus initialisation
- From: Dmitry A. Kazakov
- Re: Renaming versus initialisation
- References:
- Renaming versus initialisation
- From: Tapio Kelloniemi
- Renaming versus initialisation
- Prev by Date: Re: Garbage Collection for Ada
- Next by Date: Re: String filtering
- Previous by thread: Renaming versus initialisation
- Next by thread: Re: Renaming versus initialisation
- Index(es):
Relevant Pages
|