220 7370 <ef2d6928-9873-4417-8ac8-02e414883c65@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: ts <thierry.seegers@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Allowing "auto i =0, j;"
Date: Sat, 19 Oct 2013 21:28:06 -0700 (PDT)
Lines: 109
Approved: news@gmane.org
Message-ID: <ef2d6928-9873-4417-8ac8-02e414883c65@isocpp.org>
References: <0aa985aa-b557-4ce3-9a11-e6de9356c398@isocpp.org>
 <30a80118-16a9-4560-bbff-81a8a27d73d0@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_2238_10049609.1382243286042"
X-Trace: ger.gmane.org 1382243286 17879 80.91.229.3 (20 Oct 2013 04:28:06 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 20 Oct 2013 04:28:06 +0000 (UTC)
Cc: thierry.seegers@gmail.com, fmatthew5876@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDK33RPN7IARBV5XRWJQKGQEH2GEKHQ@isocpp.org Sun Oct 20 06:28:10 2013
Return-path: <std-proposals+bncBDK33RPN7IARBV5XRWJQKGQEH2GEKHQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f70.google.com ([209.85.219.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDK33RPN7IARBV5XRWJQKGQEH2GEKHQ@isocpp.org>)
	id 1VXkcb-0006GZ-Ou
	for gclcip-std-proposals@m.gmane.org; Sun, 20 Oct 2013 06:28:10 +0200
Original-Received: by mail-oa0-f70.google.com with SMTP id j10sf15650577oah.1
        for <gclcip-std-proposals@m.gmane.org>; Sat, 19 Oct 2013 21:28:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:message-id:in-reply-to:references: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=u3eOqlG6tGXy1HyqJ69U7xdCiWRLK7zkvdfgr9tzPUo=;
        b=DH1HL24YA0CFqi/vc2LQNSk100XYkIL50yn4vIbHLr0ORW5SvVrIu7YiRS9I0aFQzb
         hsEIS+6S+ir0B7ipFotkntBk2QdVkEH+eyXMCM4/+N5VR137kZaBaIEWf3ryTn7XPU/0
         Ixwr+yXTtRAsj3Y+9osaQlsjah+lF94N9E6oibR5YHiR2k0CrWqgWQoodiUXQxTlg1n3
         f0OdcvLYWLtYe6TH8EqVETN++rh3089IC7Go3eCuBMVBkxeGB95TDVrNCzGYAfFUauIy
         65DsCemRdIuoC81NxJC2OJdlrvGprSDC7hyveim0llL9rl50w/GQBxvfAb3C0rCnqOTk
         0UQQ==
X-Received: by 10.182.111.227 with SMTP id il3mr77759obb.41.1382243288289;
        Sat, 19 Oct 2013 21:28:08 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.118.97 with SMTP id kl1ls1119887igb.35.canary; Sat, 19 Oct
 2013 21:28:07 -0700 (PDT)
X-Received: by 10.50.170.228 with SMTP id ap4mr110199igc.16.1382243287274;
        Sat, 19 Oct 2013 21:28:07 -0700 (PDT)
In-Reply-To: <30a80118-16a9-4560-bbff-81a8a27d73d0@isocpp.org>
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:7370
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7370>

------=_Part_2238_10049609.1382243286042
Content-Type: text/plain; charset=ISO-8859-1

What Vlad said, it's the same compiler error as this:

int i = 0, j = "hello";


On Saturday, October 19, 2013 9:11:52 AM UTC-7, fmatth...@gmail.com wrote:
>
> I'm not sure this feature makes sense.
>
> Whats the type supposed to be in this cases?
>
> auto i = 0, j = 1L:
>
> On Friday, October 18, 2013 8:52:30 PM UTC-4, ts wrote:
>>
>> 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_2238_10049609.1382243286042
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">What Vlad said, it's the same compiler error as this:<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"subprett=
yprint"><span style=3D"color: #008;" class=3D"styled-by-prettify">int</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: #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-=
by-prettify">=3D</span><span style=3D"color: #000;" class=3D"styled-by-pret=
tify"> </span><span style=3D"color: #080;" class=3D"styled-by-prettify">"he=
llo"</span><span style=3D"color: #660;" class=3D"styled-by-prettify">;</spa=
n><span style=3D"color: #000;" class=3D"styled-by-prettify"><br></span></di=
v></code></div><br><br>On Saturday, October 19, 2013 9:11:52 AM UTC-7, fmat=
th...@gmail.com wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;=
margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=
=3D"ltr"><div>I'm not sure this feature makes sense.</div><div><br></div>Wh=
ats the type supposed to be in this cases?<div><br></div><div>auto i =3D 0,=
 j =3D 1L:</div><div><br>On Friday, October 18, 2013 8:52:30 PM UTC-4, ts w=
rote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;=
border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi all,<br><b=
r>I've found myself doing something like the following a lot in the past:<c=
ode><div><span style=3D"color:#008"><br>int</span><span style=3D"color:#000=
"> i </span><span style=3D"color:#660">=3D</span><span style=3D"color:#000"=
> </span><span style=3D"color:#066">0</span><span style=3D"color:#660">,</s=
pan><span style=3D"color:#000"> j</span><span style=3D"color:#660">;</span>=
<span style=3D"color:#000"><br></span></div></code><span style=3D"color:#00=
0"><br>And, naturally, I caught myself doing this recently:<br><br><div sty=
le=3D"background-color:rgb(250,250,250);border-color:rgb(187,187,187);borde=
r-style:solid;border-width:1px;word-wrap:break-word"><code><div><span style=
=3D"color:#008">auto</span><span style=3D"color:#000"> i </span><span style=
=3D"color:#660">=3D</span><span style=3D"color:#000"> </span><span style=3D=
"color:#066">0</span><span style=3D"color:#660">,</span><span style=3D"colo=
r:#000"> j</span><span style=3D"color:#660">;</span></div></code></div><br>=
About which the compiler complained since, AFAICT, it is explicitly disallo=
wed. I'm curious to know why. It doesn't seem that much of a stretch to exp=
ect that j's type would be decltype(i)...<br><br>Thanks for any insight abo=
ut this!<br><br>TS<br></span><code></code><br><br></div></blockquote></div>=
</div></blockquote></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_2238_10049609.1382243286042--

.
