220 21650 <CAHK+-FsDnFf7yBGzcaWnRUJBwcpz=-K8A8y+HVya_0MZW6XFkw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Sam Kellett <samkellett@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Introducing the returntype keyword
Date: Tue, 13 Oct 2015 10:54:27 +0100
Lines: 72
Approved: news@gmane.org
Message-ID: <CAHK+-FsDnFf7yBGzcaWnRUJBwcpz=-K8A8y+HVya_0MZW6XFkw@mail.gmail.com>
References: <24e315aa-2daf-4e47-933b-1f45157a0f79@isocpp.org>
	<mtuvue$jl1$1@ger.gmane.org>
	<CAMeU-s3cCNJX7uynNYdkHAEq2AbE_fT+M_6cEkQ1h8KJJkJdMw@mail.gmail.com>
	<CAOU91OMTLdtAW+cN83ymE38cx6PG8N8riyFZiQ2iayh98ym4gg@mail.gmail.com>
	<CAOU91OOZt4VoFVu2_t+5BhGvbRbEM2aP=dPE+oSeqMSGgomm1w@mail.gmail.com>
	<0884ab8b-672b-459a-9143-f522ea7ebf1d@isocpp.org>
	<ECDB85D3-3B91-4C65-AD0F-2D8F05556C3B@gmail.com>
	<3374ec49-e50e-40dc-8936-46e642a93ebf@isocpp.org>
	<CA4AD0AE-C528-47CB-A76D-AA2A94D52E4E@gmail.com>
	<d46ebd5f-f13a-49cd-a7a0-96ad0782dff4@isocpp.org>
	<657411EE-5D17-4BF7-A8BA-9AB99C840B5D@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=e89a8f2350158105560521f96e9f
X-Trace: ger.gmane.org 1444730071 6381 80.91.229.3 (13 Oct 2015 09:54:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 13 Oct 2015 09:54:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDY6DWXBQIPRBVFJ6OYAKGQEP65PMMA@isocpp.org Tue Oct 13 11:54:31 2015
Return-path: <std-proposals+bncBDY6DWXBQIPRBVFJ6OYAKGQEP65PMMA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lb0-f197.google.com ([209.85.217.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDY6DWXBQIPRBVFJ6OYAKGQEP65PMMA@isocpp.org>)
	id 1ZlwHu-0001Kv-3S
	for gclcip-std-proposals@m.gmane.org; Tue, 13 Oct 2015 11:54:30 +0200
Original-Received: by lbbti1 with SMTP id ti1sf6469904lbb.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 13 Oct 2015 02:54:29 -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=jJGQEYZYQlBVHdSPaabT9wN9lJtuinGgzmTeDZ+V5Ag=;
        b=U3a/4SVIi6aUy0SL+0A7vi7y9mB7eLHxpzwA+Vz0chqQ/CxSuxYpjHGQBKF0uBNNUI
         DrgeWo6EfwAw67lpHeyyZobzJwfwZuBLBnBztPLPU9dgAQ7QNfm55zM+XJTvFDoK4RyL
         4Ja7P7Czde0shbDCUbZjMqUzYuVF9z3IvRqP5FAE4G3AQdDJtCKCpD7DaX96S7M62Qcg
         S7MgnMj0ClvccAFAdy0c/FUlhY1H/Pvjjv8CbidL7cMgTCbBsrQRA3GI22YGkbTSW/RJ
         pwauM5469OmrNn6aMlUo2DdDg8zXA/j3fTQyFdSxFJPsYVOksJeaOG7OfzBs1AuxuKor
         pC3g==
X-Gm-Message-State: ALoCoQkT8TMajkziptamUgJSjiGSSPpg/81gPeYazWPHQWDNQDCAcr4Ij+i3+hcUCbC8OztPFouL
X-Received: by 10.112.202.165 with SMTP id kj5mr6715741lbc.5.1444730069284;
        Tue, 13 Oct 2015 02:54:29 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.33.196 with SMTP id h187ls628091lfh.4.gmail; Tue, 13 Oct
 2015 02:54:28 -0700 (PDT)
X-Received: by 10.112.158.1 with SMTP id wq1mr14257624lbb.67.1444730068206;
        Tue, 13 Oct 2015 02:54:28 -0700 (PDT)
Original-Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com. [2a00:1450:4010:c04::230])
        by mx.google.com with ESMTPS id e76si1640687lfe.27.2015.10.13.02.54.28
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 13 Oct 2015 02:54:28 -0700 (PDT)
Received-SPF: pass (google.com: domain of samkellett@gmail.com designates 2a00:1450:4010:c04::230 as permitted sender) client-ip=2a00:1450:4010:c04::230;
Original-Received: by lbbck17 with SMTP id ck17so13407676lbb.1
        for <std-proposals@isocpp.org>; Tue, 13 Oct 2015 02:54:28 -0700 (PDT)
X-Received: by 10.112.131.8 with SMTP id oi8mr11759352lbb.99.1444730068069;
 Tue, 13 Oct 2015 02:54:28 -0700 (PDT)
Original-Received: by 10.114.173.114 with HTTP; Tue, 13 Oct 2015 02:54:27 -0700 (PDT)
In-Reply-To: <657411EE-5D17-4BF7-A8BA-9AB99C840B5D@gmail.com>
X-Original-Sender: samkellett@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of samkellett@gmail.com designates 2a00:1450:4010:c04::230 as
 permitted sender) smtp.mailfrom=samkellett@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:21650
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21650>

--e89a8f2350158105560521f96e9f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 13 October 2015 at 10:51, David Krauss <potswa@gmail.com> wrote:

>
> On 2015=E2=80=9310=E2=80=9313, at 5:30 PM, Klemens Morgenstern <
> klemens.morgenstern@gmx.net> wrote:
>
> So decltype(return) would be the same as decltype(foo()) ? That would mea=
n
> to me, that there's already a similar thing, so it's not necessary.
>
>
> For functions with parameters, the call expression is not as simple as
> foo().
>

plus it's duplication which is what this is trying to avoid. what if i want
to rename foo? or change it's parameters. decltype(return) will also work.

--=20

---=20
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 e=
mail 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-proposa=
ls/.

--e89a8f2350158105560521f96e9f
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 13 October 2015 at 10:51, David Krauss <span dir=3D"ltr">&lt;<a href=
=3D"mailto:potswa@gmail.com" target=3D"_blank">potswa@gmail.com</a>&gt;</sp=
an> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-=
word"><br><div><span class=3D""><blockquote type=3D"cite"><div>On 2015=E2=
=80=9310=E2=80=9313, at 5:30 PM, Klemens Morgenstern &lt;<a href=3D"mailto:=
klemens.morgenstern@gmx.net" target=3D"_blank">klemens.morgenstern@gmx.net<=
/a>&gt; wrote:</div><br><div><div dir=3D"ltr">So decltype(return) would be =
the same as decltype(foo()) ? That would mean to me, that there&#39;s alrea=
dy a similar thing, so it&#39;s not necessary.</div></div></blockquote><div=
><br></div></span><div>For functions with parameters, the call expression i=
s not as simple as <font face=3D"Courier">foo()</font>.</div></div></div></=
blockquote><div><br></div><div>plus it&#39;s duplication which is what this=
 is trying to avoid. what if i want to rename foo? or change it&#39;s param=
eters. decltype(return) will also work.<br></div></div></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 />

--e89a8f2350158105560521f96e9f--

.
