220 7357 <0aa985aa-b557-4ce3-9a11-e6de9356c398@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: ts <thierry.seegers@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Allowing "auto i =0, j;"
Date: Fri, 18 Oct 2013 17:52:30 -0700 (PDT)
Lines: 78
Approved: news@gmane.org
Message-ID: <0aa985aa-b557-4ce3-9a11-e6de9356c398@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1783_29906393.1382143950389"
X-Trace: ger.gmane.org 1382143951 14134 80.91.229.3 (19 Oct 2013 00:52:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 19 Oct 2013 00:52:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDK33RPN7IARBUFPQ6JQKGQEFHHTD7Y@isocpp.org Sat Oct 19 02:52:36 2013
Return-path: <std-proposals+bncBDK33RPN7IARBUFPQ6JQKGQEFHHTD7Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f69.google.com ([209.85.219.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDK33RPN7IARBUFPQ6JQKGQEFHHTD7Y@isocpp.org>)
	id 1VXKmQ-0007oF-5z
	for gclcip-std-proposals@m.gmane.org; Sat, 19 Oct 2013 02:52:34 +0200
Original-Received: by mail-oa0-f69.google.com with SMTP id n12sf12583763oag.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 18 Oct 2013 17:52:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=SIag7INgcYK00eJqFWtRTjULmyu6Ll5atQhfQIsQef0=;
        b=GMwFlZpVSDWgEafAcyEV8EitlhgJYjTOgpoeiiiKnEtaWRMY2G8E6EXihwHyQqn+y7
         r+CFy4TjW+szYA2x6R4cqBk4fpVo6ZFtKokOd1/vNwS+57YPEzoylhCzDDyU/WbkMUgW
         6ISNqsXkfoZ545ewQmVxhGh7OAroIrsJ+Essj5MJZAYXdqgZE/mxYTxJQZ+19o08pP79
         RT8GR7MXha3g9oumY96iLecXSwiyHvvpHlklgrmrlvjQgth38Ldfw7Tv4qp+MsHNWDJZ
         2NV+a0UA/zPgAoPGXKLesNa2Fh13HCXjHvVmTLMIoiMyjI4Xw7slO5ootDlkH12JS4rw
         L47A==
X-Received: by 10.182.247.102 with SMTP id yd6mr2201546obc.39.1382143952821;
        Fri, 18 Oct 2013 17:52:32 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.12.67 with SMTP id w3ls735641igb.25.canary; Fri, 18 Oct
 2013 17:52:31 -0700 (PDT)
X-Received: by 10.50.11.16 with SMTP id m16mr105279igb.0.1382143951731;
        Fri, 18 Oct 2013 17:52:31 -0700 (PDT)
X-Original-Sender: thierry.seegers@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:7357
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7357>

------=_Part_1783_29906393.1382143950389
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I've found myself doing something like the following a lot in the past:

int i = 0, j;

And, naturally, I caught myself doing this recently:

auto i = 0, j;

About which the compiler complained since, AFAICT, it is explicitly 
disallowed. I'm curious to know why. It doesn't seem that much of a stretch 
to expect that j's type would be decltype(i)...

Thanks for any insight about this!

TS


-- 

--- 
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/.

------=_Part_1783_29906393.1382143950389
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi all,<br><br>I've found myself doing something like the =
following a lot in the past:<code class=3D"prettyprint"><div class=3D"subpr=
ettyprint"><span style=3D"color: #008;" class=3D"styled-by-prettify"><br>in=
t</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> i </span=
><span style=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><span =
style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"=
color: #066;" class=3D"styled-by-prettify">0</span><span style=3D"color: #6=
60;" class=3D"styled-by-prettify">,</span><span style=3D"color: #000;" clas=
s=3D"styled-by-prettify"> j</span><span style=3D"color: #660;" class=3D"sty=
led-by-prettify">;</span><span style=3D"color: #000;" class=3D"styled-by-pr=
ettify"><br></span></div></code><span style=3D"color: #000;" class=3D"style=
d-by-prettify"><br>And, naturally, I caught myself doing this recently:<br>=
<br><div class=3D"prettyprint" style=3D"background-color: rgb(250, 250, 250=
); border-color: rgb(187, 187, 187); border-style: solid; border-width: 1px=
; word-wrap: break-word;"><code class=3D"prettyprint"><div class=3D"subpret=
typrint"><span style=3D"color: #008;" class=3D"styled-by-prettify">auto</sp=
an><span style=3D"color: #000;" class=3D"styled-by-prettify"> i </span><spa=
n style=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color=
: #066;" class=3D"styled-by-prettify">0</span><span style=3D"color: #660;" =
class=3D"styled-by-prettify">,</span><span style=3D"color: #000;" class=3D"=
styled-by-prettify"> j</span><span style=3D"color: #660;" class=3D"styled-b=
y-prettify">;</span></div></code></div><br>About which the compiler complai=
ned since, AFAICT, it is explicitly disallowed. I'm curious to know why. It=
 doesn't seem that much of a stretch to expect that j's type would be declt=
ype(i)...<br><br>Thanks for any insight about this!<br><br>TS<br></span><co=
de class=3D"prettyprint"></code><br><br></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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 />

------=_Part_1783_29906393.1382143950389--

.
