Re: Renaming versus initialisation
- From: "Jeffrey R. Carter" <spam@xxxxxxxx>
- Date: Wed, 28 Sep 2005 18:53:43 GMT
Dmitry A. Kazakov wrote:
A compiler has right to optimize out the local object. I believe, it also can optimize out initialization/finalization pair of the target in declaration with initialization, so in the end it could be same, though it isn't in GNAT.
I think this analysis is correct. This is compiler dependent. The only language-required difference is that renames creates a constant and initialization can create a variable.
-- Jeff Carter "You tiny-brained wipers of other people's bottoms!" Monty Python & the Holy Grail 18 .
- References:
- Re: Renaming versus initialisation
- From: Dmitry A. Kazakov
- Re: Renaming versus initialisation
- From: Tapio Kelloniemi
- Re: Renaming versus initialisation
- From: Dmitry A. Kazakov
- Re: Renaming versus initialisation
- Prev by Date: Re: GNAT GPL - Anonymous Access Type
- Next by Date: Re: GNAT GPL - Anonymous Access Type
- Previous by thread: Re: Renaming versus initialisation
- Next by thread: Re: Protected type defined in the procedure
- Index(es):
Relevant Pages
|