From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Question[s] about aliased extended return.
Date: Sat, 10 Nov 2012 03:17:15 +0100
Date: 2012-11-10T03:17:15+01:00 [thread overview]
Message-ID: <op.wnjcm1wrule2fv@cardamome> (raw)
In-Reply-To: 3f8ba99f-015f-4567-8d31-6c711beb58c4@googlegroups.com
Le Sat, 10 Nov 2012 02:52:43 +0100, Shark8 <onewingedshark@gmail.com> a
écrit:
> On Friday, November 9, 2012 6:08:46 PM UTC-7, Jeffrey Carter wrote:
>> On 11/09/2012 12:42 PM, Shark8 wrote:
>>
>> The extended return exists for build-in-place results of limited types.
>> There's
>> really no reason to use it for other types.
>
> Really? I thought it was quite useful for initializing things too:
No (it was discussed some many months ago). It may looks like a
write‑in‑place statement, but that's only an appearance, nothing specifies
it should have this behavior. For non‑limited types, the extended return
statement is exactly the same as a classic return statement, wrapped in a
local scope (as with a declare/begin/end block) with a locally declared
variable. Nothing special with this construct when not applied to a
limited type.
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
next prev parent reply other threads:[~2012-11-16 9:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 15:55 Question[s] about aliased extended return Shark8
2012-11-09 0:43 ` Randy Brukardt
2012-11-09 3:40 ` Yannick Duchêne (Hibou57)
2012-11-10 7:34 ` Randy Brukardt
2012-11-09 19:42 ` Shark8
2012-11-09 20:53 ` sbelmont700
2012-11-09 21:44 ` Yannick Duchêne (Hibou57)
2012-11-09 22:04 ` sbelmont700
2012-11-09 22:56 ` Shark8
2012-11-09 22:54 ` Shark8
2012-11-10 7:27 ` Randy Brukardt
2012-11-10 16:08 ` Shark8
2012-11-10 1:08 ` Jeffrey Carter
2012-11-10 1:52 ` Shark8
2012-11-10 2:17 ` Yannick Duchêne (Hibou57) [this message]
2012-11-10 10:59 ` Bill Findlay
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox