Topic: Allowing "auto i =0, j;


Author: ts <thierry.seegers@gmail.com>
Date: Fri, 18 Oct 2013 17:52:30 -0700 (PDT)
Raw View
------=_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--

.


Author: fmatthew5876@gmail.com
Date: Sat, 19 Oct 2013 09:11:52 -0700 (PDT)
Raw View
------=_Part_2162_4277653.1382199112044
Content-Type: text/plain; charset=ISO-8859-1

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_2162_4277653.1382199112044
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I'm not sure this feature makes sense.</div><div><br>=
</div>Whats 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 wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-le=
ft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">=
Hi all,<br><br>I've found myself doing something like the following a lot i=
n the past:<code><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"c=
olor:#660">,</span><span style=3D"color:#000"> j</span><span style=3D"color=
:#660">;</span><span style=3D"color:#000"><br></span></div></code><span sty=
le=3D"color:#000"><br>And, naturally, I caught myself doing this 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=3D"color:#000"> i </s=
pan><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><spa=
n style=3D"color:#000"> j</span><span style=3D"color:#660">;</span></div></=
code></div><br>About which the compiler complained since, AFAICT, it is exp=
licitly 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)...<br><br>Thanks for =
any insight about this!<br><br>TS<br></span><code></code><br><br></div></bl=
ockquote></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 />

------=_Part_2162_4277653.1382199112044--

.


Author: Vlad from Moscow <vlad.moscow@mail.ru>
Date: Sat, 19 Oct 2013 09:32:20 -0700 (PDT)
Raw View
------=_Part_62_24654589.1382200340558
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

It is supposed to be a compilation error. The original example has nothing=
=20
common with your example
=20

=D3=D5=C2=C2=CF=D4=C1, 19 =CF=CB=D4=D1=C2=D2=D1 2013 =C7., 20:11:52 UTC+4 =
=D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8=20
fmatth...@gmail.com =CE=C1=D0=C9=D3=C1=CC:

> I'm not sure this feature makes sense.
>
> Whats the type supposed to be in this cases?
>
> auto i =3D 0, j =3D 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 =3D 0, j;
>>
>> And, naturally, I caught myself doing this recently:
>>
>> auto i =3D 0, j;
>>
>> About which the compiler complained since, AFAICT, it is explicitly=20
>> disallowed. I'm curious to know why. It doesn't seem that much of a stre=
tch=20
>> to expect that j's type would be decltype(i)...
>>
>> Thanks for any insight about this!
>>
>> TS
>>
>>
>>

--=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/.

------=_Part_62_24654589.1382200340558
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>It is supposed to be a compilation error. The origina=
l example has nothing common with your example</div><div>&nbsp;</div><div><=
br>=D3=D5=C2=C2=CF=D4=C1, 19 =CF=CB=D4=D1=C2=D2=D1 2013&nbsp;=C7., 20:11:52=
 UTC+4 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 fmatth...@gmail.com =CE=C1=D0=
=C9=D3=C1=CC:</div><blockquote class=3D"gmail_quote" style=3D"margin: 0px 0=
px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); bor=
der-left-width: 1px; border-left-style: solid;"><div dir=3D"ltr"><div>I'm n=
ot sure this feature makes sense.</div><div><br></div>Whats the type suppos=
ed to be in this cases?<div><br></div><div>auto i =3D 0, j =3D 1L:</div><di=
v><br>On Friday, October 18, 2013 8:52:30 PM UTC-4, ts wrote:<blockquote cl=
ass=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; =
border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-=
style: solid;"><div dir=3D"ltr">Hi all,<br><br>I've found myself doing some=
thing like the following a lot in the past:<code><div><span style=3D"color:=
 rgb(0, 0, 136);"><br>int</span><span style=3D"color: rgb(0, 0, 0);"> i </s=
pan><span style=3D"color: rgb(102, 102, 0);">=3D</span><span style=3D"color=
: rgb(0, 0, 0);"> </span><span style=3D"color: rgb(0, 102, 102);">0</span><=
span style=3D"color: rgb(102, 102, 0);">,</span><span style=3D"color: rgb(0=
, 0, 0);"> j</span><span style=3D"color: rgb(102, 102, 0);">;</span><span s=
tyle=3D"color: rgb(0, 0, 0);"><br></span></div></code><span style=3D"color:=
 rgb(0, 0, 0);"><br>And, naturally, I caught myself doing this recently:<br=
><br><div style=3D"border: 1px solid rgb(187, 187, 187); word-wrap: break-w=
ord; background-color: rgb(250, 250, 250);"><code><div><span style=3D"color=
: rgb(0, 0, 136);">auto</span><span style=3D"color: rgb(0, 0, 0);"> i </spa=
n><span style=3D"color: rgb(102, 102, 0);">=3D</span><span style=3D"color: =
rgb(0, 0, 0);"> </span><span style=3D"color: rgb(0, 102, 102);">0</span><sp=
an style=3D"color: rgb(102, 102, 0);">,</span><span style=3D"color: rgb(0, =
0, 0);"> j</span><span style=3D"color: rgb(102, 102, 0);">;</span></div></c=
ode></div><br>About which the compiler complained since, AFAICT, it is expl=
icitly 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)...<br><br>Thanks for a=
ny insight about this!<br><br>TS<br></span><code></code><br><br></div></blo=
ckquote></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_62_24654589.1382200340558--

.


Author: ts <thierry.seegers@gmail.com>
Date: Sat, 19 Oct 2013 21:28:06 -0700 (PDT)
Raw View
------=_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--

.


Author: "Billy O'Neal" <billy.oneal@gmail.com>
Date: Sat, 19 Oct 2013 23:49:13 -0700
Raw View
--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--

.


Author: pwnzorbot4000@gmail.com
Date: Tue, 22 Oct 2013 09:13:42 -0700 (PDT)
Raw View
------=_Part_86_20544353.1382458422828
Content-Type: text/plain; charset=ISO-8859-1

+1 to Billy's comment. I'd like to be able to do something like,
auto i = 42, str = "Hello World", foo = bar + baz;

Compiling this in ie. gcc will throw, "error: inconsistent deduction for
'auto': 'int' and then 'const char*'" etc. (This makes me however wonder if
this was maybe rejected in a previous proposal? By the way I bumped onto
this,
http://stackoverflow.com/questions/6555515/why-base-class-is-not-automatically-deduced-in-the-same-auto-declaration- food for thought...)

On Sunday, October 20, 2013 9:49:13 AM UTC+3, Billy O'Neal wrote:
>
> 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...@gmail.com <javascript:>>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.comwrote:
>>>
>>> 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-proposal...@isocpp.org <javascript:>.
>> To post to this group, send email to std-pr...@isocpp.org <javascript:>.
>> 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/.

------=_Part_86_20544353.1382458422828
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">+1 to Billy's comment. I'd like to be able to do something=
 like, <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"subp=
rettyprint"><span style=3D"color: #008;" class=3D"styled-by-prettify">auto<=
/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 st=
yle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"co=
lor: #066;" class=3D"styled-by-prettify">42</span><span style=3D"color: #66=
0;" class=3D"styled-by-prettify">,</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"> str </span><span style=3D"color: #660;" class=3D"s=
tyled-by-prettify">=3D</span><span style=3D"color: #000;" class=3D"styled-b=
y-prettify"> </span><span style=3D"color: #080;" class=3D"styled-by-prettif=
y">"Hello World"</span><span style=3D"color: #660;" class=3D"styled-by-pret=
tify">,</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> fo=
o </span><span style=3D"color: #660;" class=3D"styled-by-prettify">=3D</spa=
n><span style=3D"color: #000;" class=3D"styled-by-prettify"> bar </span><sp=
an style=3D"color: #660;" class=3D"styled-by-prettify">+</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"> baz</span><span style=3D"co=
lor: #660;" class=3D"styled-by-prettify">;</span><span style=3D"color: #000=
;" class=3D"styled-by-prettify"><br></span></div></code></div><br>Compiling=
 this in ie. gcc will throw, "error: inconsistent deduction for 'auto': 'in=
t' and then 'const char*'" etc. (This makes me however wonder if this was m=
aybe  rejected in a previous proposal? By the way I bumped onto this, <a hr=
ef=3D"http://stackoverflow.com/questions/6555515/why-base-class-is-not-auto=
matically-deduced-in-the-same-auto-declaration">http://stackoverflow.com/qu=
estions/6555515/why-base-class-is-not-automatically-deduced-in-the-same-aut=
o-declaration</a> - food for thought...)<br><br>On Sunday, October 20, 2013=
 9:49:13 AM UTC+3, Billy O'Neal wrote:<blockquote class=3D"gmail_quote" sty=
le=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left=
: 1ex;"><div dir=3D"ltr">However, I could easily see someone expecting the =
type of j to be char const *.<div><div><br clear=3D"all"><div><div dir=3D"l=
tr"><div>Billy O'Neal</div><div><a href=3D"https://bitbucket.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/<wbr>users/82320/billy-oneal</a></div><di=
v>Malware 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"javascript:" target=3D"_blank" gdf-obfuscated-=
mailto=3D"f00W6CVcekoJ">thierry...@gmail.com</a>&gt;</span> wrote:<br><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex">

<div dir=3D"ltr">What Vlad said, it'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> i </span><span style=3D"color:#=
660">=3D</span><span> </span><span style=3D"color:#066">0</span><span style=
=3D"color:#660">,</span><span> j </span><span style=3D"color:#660">=3D</spa=
n><span> </span><span style=3D"color:#080">"hello"</span><span style=3D"col=
or:#660">;</span><span><br>

</span></div></code></div><div><div><br><br>On Saturday, October 19, 2013 9=
:11:52 AM UTC-7, <a>fmatth...@gmail.com</a> wrote:<blockquote class=3D"gmai=
l_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">

<div dir=3D"ltr"><div>I'm not sure this feature makes sense.</div><div><br>=
</div>Whats 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 wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-lef=
t:0.8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir=3D"ltr">Hi all,<br><br>I've found myself doing something like the =
following a lot in the past:<code><div><span style=3D"color:#008"><br>int</=
span><span> i </span><span style=3D"color:#660">=3D</span><span> </span><sp=
an style=3D"color:#066">0</span><span style=3D"color:#660">,</span><span> j=
</span><span style=3D"color:#660">;</span><span><br>

</span></div></code><span><br>And, naturally, I caught myself doing this re=
cently:<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> i </span><span styl=
e=3D"color:#660">=3D</span><span> </span><span style=3D"color:#066">0</span=
><span style=3D"color:#660">,</span><span> j</span><span style=3D"color:#66=
0">;</span></div>

</code></div><br>About which the compiler complained since, AFAICT, it is e=
xplicitly 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)...<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><di=
v>

<p></p>

-- <br>
&nbsp;<br>
--- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
f00W6CVcekoJ">std-proposal...@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"javascript:" target=3D"_bla=
nk" gdf-obfuscated-mailto=3D"f00W6CVcekoJ">std-pr...@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/<wbr>isocpp.or=
g/group/std-<wbr>proposals/</a>.<br>
</div></div></blockquote></div><br></div></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_86_20544353.1382458422828--

.