From: Tapio Kelloniemi <invalid@localhost.localdomain.com>
Subject: Re: Renaming versus initialisation
Date: Wed, 28 Sep 2005 15:12:23 GMT
Date: 2005-09-28T15:12:23+00:00 [thread overview]
Message-ID: <rpy_e.29956$NY4.16965@reader1.news.jippii.net> (raw)
In-Reply-To: 1qys7gc3aqky9$.1qtzg7epyh6kk$.dlg@40tude.net
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:
>On 27 Sep 2005 20:00:56 -0400, Robert A Duff wrote:
>
>> 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.
>
>What about difference in respect to creation of new objects?
Renaming creates a new object as does initialisation, when not
returning by reference (return value is copied = new object is created).
--
Tapio
next prev parent reply other threads:[~2005-09-28 15:12 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
2005-09-28 8:02 ` Dmitry A. Kazakov
2005-09-28 15:12 ` Tapio Kelloniemi [this message]
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