220 7371 <CAPBZbvwidWZckC_YL_oHkyZAmkwOfOgR19FN1qhxV8bb7EsxTQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "Billy O'Neal" <billy.oneal@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Allowing "auto i =0, j;"
Date: Sat, 19 Oct 2013 23:49:13 -0700
Lines: 168
Approved: news@gmane.org
Message-ID: <CAPBZbvwidWZckC_YL_oHkyZAmkwOfOgR19FN1qhxV8bb7EsxTQ@mail.gmail.com>
References: <0aa985aa-b557-4ce3-9a11-e6de9356c398@isocpp.org>
 <30a80118-16a9-4560-bbff-81a8a27d73d0@isocpp.org> <ef2d6928-9873-4417-8ac8-02e414883c65@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e0122aa2424b4bf04e9269327
X-Trace: ger.gmane.org 1382251792 21288 80.91.229.3 (20 Oct 2013 06:49:52 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 20 Oct 2013 06:49:52 +0000 (UTC)
Cc: thierry.seegers@gmail.com, fmatthew5876@gmail.com
To: std-proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDKLBLVE6ADBBEP2RWJQKGQETGHD2GQ@isocpp.org Sun Oct 20 08:49:57 2013
Return-path: <std-proposals+bncBDKLBLVE6ADBBEP2RWJQKGQETGHD2GQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f72.google.com ([209.85.219.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDKLBLVE6ADBBEP2RWJQKGQETGHD2GQ@isocpp.org>)
	id 1VXmpo-00060o-03
	for gclcip-std-proposals@m.gmane.org; Sun, 20 Oct 2013 08:49:56 +0200
Original-Received: by mail-oa0-f72.google.com with SMTP id m17sf12079312oag.7
        for <gclcip-std-proposals@m.gmane.org>; Sat, 19 Oct 2013 23:49:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc:x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=yvlzVlPiVSDxmyeCmkXVG8ZzpPkOvulEXQFi3onzr/w=;
        b=CVoO7K6BpBBrU55Cpvs0/tgF3ocyOAU2d9Hm7+eswaqEHJmCMn5FogWOIIOM1GJKIy
         s3qn3ul3ILoaN8EApn6Nmlvt46emNN9fWnkiLEgRxh8BCfoArUqu4R3XBEA3ApUZnDZm
         XNr+Xv3+Hq8jKUsnyOj6K3XyNpcG0xGTXS0CLSVL0Iag5MD2Gz6jY0I9RfFPMyJkzXP+
         jGsJ0XwX44l4ZA8GN4B3GWwu2UzgUXhwydn+PsDVMZYVeOJ56zXkpjSCt/FECeD8LnJ2
         hslEpw6zuolDjib5Oe8gk0HOXsqe/9pkDPP7/NsJnwno5OHAF8BMECqK8CZ/cs3mMVZD
         sIFQ==
X-Received: by 10.182.118.194 with SMTP id ko2mr4236591obb.32.1382251794752;
        Sat, 19 Oct 2013 23:49:54 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.24.194 with SMTP id w2ls695174obf.20.gmail; Sat, 19 Oct
 2013 23:49:53 -0700 (PDT)
X-Received: by 10.60.134.230 with SMTP id pn6mr102493oeb.52.1382251793687;
        Sat, 19 Oct 2013 23:49:53 -0700 (PDT)
Original-Received: from mail-oa0-x233.google.com (mail-oa0-x233.google.com [2607:f8b0:4003:c02::233])
        by mx.google.com with ESMTPS id sy1si8346961obc.90.2013.10.19.23.49.53
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 19 Oct 2013 23:49:53 -0700 (PDT)
Received-SPF: pass (google.com: domain of billy.oneal@gmail.com designates 2607:f8b0:4003:c02::233 as permitted sender) client-ip=2607:f8b0:4003:c02::233;
Original-Received: by mail-oa0-f51.google.com with SMTP id h1so3003084oag.10
        for <std-proposals@isocpp.org>; Sat, 19 Oct 2013 23:49:53 -0700 (PDT)
X-Received: by 10.182.181.34 with SMTP id dt2mr14837353obc.30.1382251793526;
 Sat, 19 Oct 2013 23:49:53 -0700 (PDT)
Original-Received: by 10.182.87.37 with HTTP; Sat, 19 Oct 2013 23:49:13 -0700 (PDT)
In-Reply-To: <ef2d6928-9873-4417-8ac8-02e414883c65@isocpp.org>
X-Original-Sender: billy.oneal@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of billy.oneal@gmail.com designates 2607:f8b0:4003:c02::233 as
 permitted sender) smtp.mail=billy.oneal@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-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:7371
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7371>

--089e0122aa2424b4bf04e9269327
Content-Type: text/plain; charset=ISO-8859-1

However, I could easily see someone expecting the type of j to be char
const *.

Billy O'Neal
https://github.com/BillyONeal/ <https://bitbucket.org/BillyONeal/>
http://stackoverflow.com/users/82320/billy-oneal
Malware Response Instructor - BleepingComputer.com


On Sat, Oct 19, 2013 at 9:28 PM, ts <thierry.seegers@gmail.com> wrote:

> 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/.
>

-- 

--- 
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/.

--089e0122aa2424b4bf04e9269327
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">However, I could easily see someone expecting the type of =
j to be char const *.<div><div class=3D"gmail_extra"><br clear=3D"all"><div=
><div dir=3D"ltr"><div>Billy O&#39;Neal</div><div><a href=3D"https://bitbuc=
ket.org/BillyONeal/" target=3D"_blank">https://github.com/BillyONeal/</a></=
div>

<div><a href=3D"http://stackoverflow.com/users/82320/billy-oneal" target=3D=
"_blank">http://stackoverflow.com/users/82320/billy-oneal</a></div><div>Mal=
ware Response Instructor - BleepingComputer.com</div></div></div>
<br><br><div class=3D"gmail_quote">On Sat, Oct 19, 2013 at 9:28 PM, ts <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:thierry.seegers@gmail.com" target=3D"_b=
lank">thierry.seegers@gmail.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">

<div dir=3D"ltr">What Vlad said, it&#39;s the same compiler error as this:<=
br><br><div 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><=
div>

<span style=3D"color:#008">int</span><span style> i </span><span style=3D"c=
olor:#660">=3D</span><span style> </span><span style=3D"color:#066">0</span=
><span style=3D"color:#660">,</span><span style> j </span><span style=3D"co=
lor:#660">=3D</span><span style> </span><span style=3D"color:#080">&quot;he=
llo&quot;</span><span style=3D"color:#660">;</span><span style><br>

</span></div></code></div><div><div class=3D"h5"><br><br>On Saturday, Octob=
er 19, 2013 9:11:52 AM UTC-7, <a href=3D"mailto:fmatth...@gmail.com" target=
=3D"_blank">fmatth...@gmail.com</a> wrote:<blockquote class=3D"gmail_quote"=
 style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-lef=
t:1ex">

<div dir=3D"ltr"><div>I&#39;m not sure this feature makes sense.</div><div>=
<br></div>Whats the type supposed to be in this cases?<div><br></div><div>a=
uto i =3D 0, j =3D 1L:</div><div><br>On Friday, October 18, 2013 8:52:30 PM=
 UTC-4, ts 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">Hi all,<br><br>I&#39;ve found myself doing something like =
the following a lot in the past:<code><div><span style=3D"color:#008"><br>i=
nt</span><span style> i </span><span style=3D"color:#660">=3D</span><span s=
tyle> </span><span style=3D"color:#066">0</span><span style=3D"color:#660">=
,</span><span style> j</span><span style=3D"color:#660">;</span><span style=
><br>

</span></div></code><span style><br>And, naturally, I caught myself doing t=
his recently:<br><br><div 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><div><span style=3D"color:#008">auto</span><span style> i </span><spa=
n style=3D"color:#660">=3D</span><span style> </span><span style=3D"color:#=
066">0</span><span style=3D"color:#660">,</span><span style> j</span><span =
style=3D"color:#660">;</span></div>

</code></div><br>About which the compiler complained since, AFAICT, it is e=
xplicitly disallowed. I&#39;m curious to know why. It doesn&#39;t seem that=
 much of a stretch to expect that j&#39;s type would be decltype(i)...<br>

<br>Thanks for any insight about this!<br><br>TS<br></span><code></code><br=
><br></div></blockquote></div></div></blockquote></div></div></div><div cla=
ss=3D"HOEnZb"><div class=3D"h5">

<p></p>

-- <br>
=A0<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%2Bunsubscribe@isocpp.org" target=3D=
"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></div></div></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 />

--089e0122aa2424b4bf04e9269327--

.
