220 21065 <CAOHCbisBfHSGbynNAVpZNdXxfojQKPsMK=DS++rG+B3uXj16sw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: auto return
Date: Wed, 30 Sep 2015 15:41:12 -0400
Lines: 84
Approved: news@gmane.org
Message-ID: <CAOHCbisBfHSGbynNAVpZNdXxfojQKPsMK=DS++rG+B3uXj16sw@mail.gmail.com>
References: <CAB+4KHLBYKxVQsSd_Q-LybNLdx5W9vLJ1HKY6Um8Lwe7vVKE1w@mail.gmail.com>
	<7deedcff-6776-4b3b-a3d1-3132f8ec1ae3@isocpp.org>
	<muhd9i$ib$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a113fb8c0ebd6bb0520fc1c46
X-Trace: ger.gmane.org 1443642085 15694 80.91.229.3 (30 Sep 2015 19:41:25 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 30 Sep 2015 19:41:25 +0000 (UTC)
To: Standard Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUZ5QWKNQINT5NQWACRUBBEOTZN6@isocpp.org Wed Sep 30 21:41:20 2015
Return-path: <std-proposals+bncBCUZ5QWKNQINT5NQWACRUBBEOTZN6@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-la0-f72.google.com ([209.85.215.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUZ5QWKNQINT5NQWACRUBBEOTZN6@isocpp.org>)
	id 1ZhNFg-0005We-42
	for gclcip-std-proposals@m.gmane.org; Wed, 30 Sep 2015 21:41:20 +0200
Original-Received: by labjk1 with SMTP id jk1sf27890737lab.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 30 Sep 2015 12:41:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=gDpehLt7LzB3a3PEp3Dex5co7/NMLbovgwZYtN406Ac=;
        b=nGsbu9GNWg3/5f3Ewh0uhZ+4joMz5MxxTN8jRFRgX3Hr2t/ShoNUh2H9wRoBT3DAGF
         r6w8m/uAEpau1eXtRIqPBRGwBYd0rGCmfW1ME97tResGL1zaxQN29OhLApesrAbrYRcw
         wDXWdanprr1D/KTvzSRE42M+bUDAKyuWtumVGGeFQ25FdFpw0YaLks05MB6M/UjMFHuS
         gTGIbtLT0DDjakQdMNKFRTmwFx4B1f7IKv2E6ZDBN0Yv4X0DkQM5T+g56X6DEqaL4n2j
         j+mDhqFezKpjlGLMZpxFLKbEQI9W3P+FOpZUrV8+sSt/kM33ESUJIeK2pBPSkip1YoSa
         LvxA==
X-Gm-Message-State: ALoCoQn2AmYJpuEp1s/XwVv2QO0DdhTjf4ighIistmXh4GYFnE3OaKiSY9yGr9duAhF8OYmFKHqH
X-Received: by 10.112.125.104 with SMTP id mp8mr843785lbb.20.1443642074473;
        Wed, 30 Sep 2015 12:41:14 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.84.1 with SMTP id i1ls56509lfb.15.gmail; Wed, 30 Sep 2015
 12:41:12 -0700 (PDT)
X-Received: by 10.112.137.169 with SMTP id qj9mr1662495lbb.34.1443642072766;
        Wed, 30 Sep 2015 12:41:12 -0700 (PDT)
Original-Received: from mail-la0-x231.google.com (mail-la0-x231.google.com. [2a00:1450:4010:c03::231])
        by mx.google.com with ESMTPS id u3si957459lau.101.2015.09.30.12.41.12
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 30 Sep 2015 12:41:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::231 as permitted sender) client-ip=2a00:1450:4010:c03::231;
Original-Received: by laclj5 with SMTP id lj5so59056921lac.3
        for <std-proposals@isocpp.org>; Wed, 30 Sep 2015 12:41:12 -0700 (PDT)
X-Received: by 10.25.18.226 with SMTP id 95mr1096055lfs.96.1443642072616; Wed,
 30 Sep 2015 12:41:12 -0700 (PDT)
Original-Received: by 10.112.199.106 with HTTP; Wed, 30 Sep 2015 12:41:12 -0700 (PDT)
In-Reply-To: <muhd9i$ib$1@ger.gmane.org>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::231 as permitted
 sender) smtp.mailfrom=tvaneerd@gmail.com;       dkim=pass header.i=@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:21065
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21065>

--001a113fb8c0ebd6bb0520fc1c46
Content-Type: text/plain; charset=UTF-8

On Wed, Sep 30, 2015 at 3:30 PM, Matthew Woehlke <mwoehlke.floss@gmail.com>
wrote:

>
> I've written '<decl> result; ... return result;' often enough that I
> wouldn't mind a shortcut. I'd be potentially interested in this much of
> the proposal:
>
>   auto foo(...) // arguments not important
>   {
>     while (...)
>       return.emplace_back(...);
>     return;
>   }
>
> That is, one can use 'return' as a local variable;


In that case, I'd expect that last line to be

    return return;

And (sadly?) I think I'd be more comfortable with that.

Tony

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--001a113fb8c0ebd6bb0520fc1c46
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Sep 30, 2015 at 3:30 PM, Matthew Woehlke <span dir=3D"ltr">&lt;=
<a href=3D"mailto:mwoehlke.floss@gmail.com" target=3D"_blank">mwoehlke.flos=
s@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span c=
lass=3D""><br>
</span>I&#39;ve written &#39;&lt;decl&gt; result; ... return result;&#39; o=
ften enough that I<br>
wouldn&#39;t mind a shortcut. I&#39;d be potentially interested in this muc=
h of<br>
the proposal:<br>
<br>
=C2=A0 auto foo(...) // arguments not important<br>
=C2=A0 {<br>
=C2=A0 =C2=A0 while (...)<br>
=C2=A0 =C2=A0 =C2=A0 return.emplace_back(...);<br>
=C2=A0 =C2=A0 return;<br>
=C2=A0 }<br>
<br>
That is, one can use &#39;return&#39; as a local variable;</blockquote><div=
><br></div><div>In that case, I&#39;d expect that last line to be<br><br></=
div><div>=C2=A0=C2=A0=C2=A0 return return;<br><br></div><div>And (sadly?) I=
 think I&#39;d be more comfortable with that.<br></div></div><br></div><div=
 class=3D"gmail_extra">Tony<br><br></div></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--001a113fb8c0ebd6bb0520fc1c46--

.
