Topic: Try-Catch function


Author: HarD Gamer <rodrigojose690@gmail.com>
Date: Tue, 14 Feb 2017 13:24:38 -0800 (PST)
Raw View
------=_Part_2171_338910276.1487107478425
Content-Type: multipart/alternative;
 boundary="----=_Part_2172_1263066570.1487107478425"

------=_Part_2172_1263066570.1487107478425
Content-Type: text/plain; charset=UTF-8



<https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1kBIuvhI/AAAAAAAAASw/Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s1600/try...catch.png>
This can server to complete the noexcept concept

--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/76d9ab0e-4a74-401d-85ad-327f912a1bb7%40isocpp.org.

------=_Part_2172_1263066570.1487107478425
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><p class=3D"separator" style=3D"text-align: center; clear:=
 both;"><a imageanchor=3D"1" href=3D"https://lh3.googleusercontent.com/-YIY=
uM44tGjc/WKN1kBIuvhI/AAAAAAAAASw/Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s160=
0/try...catch.png" style=3D"margin-left: 1em; margin-right: 1em;"><img src=
=3D"https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1kBIuvhI/AAAAAAAAASw/=
Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s320/try...catch.png" border=3D"0" st=
yle=3D"" width=3D"320" height=3D"286"></a></p>This can server to complete t=
he noexcept concept</div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/76d9ab0e-4a74-401d-85ad-327f912a1bb7%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/76d9ab0e-4a74-401d-85ad-327f912a1bb7=
%40isocpp.org</a>.<br />

------=_Part_2172_1263066570.1487107478425--

------=_Part_2171_338910276.1487107478425--

.


Author: =?UTF-8?Q?Daniel_Kr=C3=BCgler?= <daniel.kruegler@gmail.com>
Date: Tue, 14 Feb 2017 22:42:17 +0100
Raw View
--001a114b17262dfe860548847066
Content-Type: text/plain; charset=UTF-8

2017-02-14 22:24 GMT+01:00 HarD Gamer <rodrigojose690@gmail.com>:

>
> <https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1kBIuvhI/AAAAAAAAASw/Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s1600/try...catch.png>
> This can server to complete the noexcept concept
>

I don't understand your proposal. It seems to propose something that
already exists (It's a so-called function-try-block) and it shows code that
is not related to the title of the proposal but is currently not valid
("std::cerr.printf").

So what is the actual proposal?

Thanks,

- Daniel

--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGNvRgC_Yqj%3DmMYXVhOpjFMOAY9OurbeMukmkMtJWqKx9sreBA%40mail.gmail.com.

--001a114b17262dfe860548847066
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">2017=
-02-14 22:24 GMT+01:00 HarD Gamer <span dir=3D"ltr">&lt;<a href=3D"mailto:r=
odrigojose690@gmail.com" target=3D"_blank">rodrigojose690@gmail.com</a>&gt;=
</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
..8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"l=
tr"><p class=3D"gmail-m_2026598680201532834separator" style=3D"text-align:c=
enter;clear:both"><a href=3D"https://lh3.googleusercontent.com/-YIYuM44tGjc=
/WKN1kBIuvhI/AAAAAAAAASw/Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s1600/try...=
catch.png" style=3D"margin-left:1em;margin-right:1em" target=3D"_blank"><im=
g src=3D"https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1kBIuvhI/AAAAAAA=
AASw/Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s320/try...catch.png" width=3D"3=
20" height=3D"286" border=3D"0"></a></p>This can server to complete the noe=
xcept concept</div><span class=3D"gmail-HOEnZb"></span></blockquote></div><=
div class=3D"gmail_signature"><div dir=3D"ltr"><br></div><div>I don&#39;t u=
nderstand your proposal. It seems to propose something that already exists =
(It&#39;s a so-called function-try-block) and it shows code that is not rel=
ated to the title of the proposal but is currently not valid (&quot;std::ce=
rr.printf&quot;).<br><br></div><div>So what is the actual proposal?<br><br>=
</div><div>Thanks,<br><br></div><div>- Daniel<br></div><div><br><br></div><=
/div>
</div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAGNvRgC_Yqj%3DmMYXVhOpjFMOAY9OurbeMu=
kmkMtJWqKx9sreBA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGNvRgC_Yqj%3D=
mMYXVhOpjFMOAY9OurbeMukmkMtJWqKx9sreBA%40mail.gmail.com</a>.<br />

--001a114b17262dfe860548847066--

.


Author: =?UTF-8?Q?Jos=C3=A9_Rodrigo?= <rodrigojose690@gmail.com>
Date: Tue, 14 Feb 2017 20:16:32 -0200
Raw View
--001a11449b54a560f6054884ea43
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

function-try-catch ex:   void A() try {} catch(...){}

2017-02-14 19:42 GMT-02:00 Daniel Kr=C3=BCgler <daniel.kruegler@gmail.com>:

> 2017-02-14 22:24 GMT+01:00 HarD Gamer <rodrigojose690@gmail.com>:
>
>>
>> <https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1kBIuvhI/AAAAAAAAASw/=
Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s1600/try...catch.png>
>> This can server to complete the noexcept concept
>>
>
> I don't understand your proposal. It seems to propose something that
> already exists (It's a so-called function-try-block) and it shows code th=
at
> is not related to the title of the proposal but is currently not valid
> ("std::cerr.printf").
>
> So what is the actual proposal?
>
> Thanks,
>
> - Daniel
>
>
> --
> 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.
> To view this discussion on the web visit https://groups.google.com/a/
> isocpp.org/d/msgid/std-proposals/CAGNvRgC_Yqj%
> 3DmMYXVhOpjFMOAY9OurbeMukmkMtJWqKx9sreBA%40mail.gmail.com
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGNvRgC_Yq=
j%3DmMYXVhOpjFMOAY9OurbeMukmkMtJWqKx9sreBA%40mail.gmail.com?utm_medium=3Dem=
ail&utm_source=3Dfooter>
> .
>

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/CAJe%2Baq8ZYAXgWTuM6DV6NbaGByrLfoXUEz_q1_hJEWT7Y=
rxEvA%40mail.gmail.com.

--001a11449b54a560f6054884ea43
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">function-try-catch ex: =C2=A0 void A() try {} catch(...){}=
</div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">2017-02-14 =
19:42 GMT-02:00 Daniel Kr=C3=BCgler <span dir=3D"ltr">&lt;<a href=3D"mailto=
:daniel.kruegler@gmail.com" target=3D"_blank">daniel.kruegler@gmail.com</a>=
&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote">2017-02-14 22:24 GMT+01:00 HarD=
 Gamer <span dir=3D"ltr">&lt;<a href=3D"mailto:rodrigojose690@gmail.com" ta=
rget=3D"_blank">rodrigojose690@gmail.com</a>&gt;</span>:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><p class=3D"m_528452058=
3095200412gmail-m_2026598680201532834separator" style=3D"text-align:center;=
clear:both"><a href=3D"https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1k=
BIuvhI/AAAAAAAAASw/Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s1600/try...catch.=
png" style=3D"margin-left:1em;margin-right:1em" target=3D"_blank"><img src=
=3D"https://lh3.googleusercontent.com/-YIYuM44tGjc/WKN1kBIuvhI/AAAAAAAAASw/=
Q2oIjQz6O-g_rzXhzGraxfUoyxoTtXUgACLcB/s320/try...catch.png" width=3D"320" h=
eight=3D"286" border=3D"0"></a></p>This can server to complete the noexcept=
 concept</div><span class=3D"m_5284520583095200412gmail-HOEnZb"></span></bl=
ockquote></div><div class=3D"m_5284520583095200412gmail_signature"><div dir=
=3D"ltr"><br></div><div>I don&#39;t understand your proposal. It seems to p=
ropose something that already exists (It&#39;s a so-called function-try-blo=
ck) and it shows code that is not related to the title of the proposal but =
is currently not valid (&quot;std::cerr.printf&quot;).<br><br></div><div>So=
 what is the actual proposal?<br><br></div><div>Thanks,<br><br></div><div>-=
 Daniel<span class=3D"HOEnZb"><font color=3D"#888888"><br></font></span></d=
iv><span class=3D"HOEnZb"><font color=3D"#888888"><div><br><br></div></font=
></span></div><span class=3D"HOEnZb"><font color=3D"#888888">
</font></span></div></div><span class=3D"HOEnZb"><font color=3D"#888888">

<p></p>

-- <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" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>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>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAGNvRgC_Yqj%3DmMYXVhOpjFMOAY9OurbeMu=
kmkMtJWqKx9sreBA%40mail.gmail.com?utm_medium=3Demail&amp;utm_source=3Dfoote=
r" target=3D"_blank">https://groups.google.com/a/<wbr>isocpp.org/d/msgid/st=
d-<wbr>proposals/CAGNvRgC_Yqj%<wbr>3DmMYXVhOpjFMOAY9OurbeMukmkMtJ<wbr>WqKx9=
sreBA%40mail.gmail.com</a>.<br>
</font></span></blockquote></div><br></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAJe%2Baq8ZYAXgWTuM6DV6NbaGByrLfoXUEz=
_q1_hJEWT7YrxEvA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAJe%2Baq8ZYAXg=
WTuM6DV6NbaGByrLfoXUEz_q1_hJEWT7YrxEvA%40mail.gmail.com</a>.<br />

--001a11449b54a560f6054884ea43--

.


Author: Nicol Bolas <jmckesson@gmail.com>
Date: Tue, 14 Feb 2017 16:46:42 -0800 (PST)
Raw View
------=_Part_2286_293967476.1487119602496
Content-Type: multipart/alternative;
 boundary="----=_Part_2287_1232656682.1487119602496"

------=_Part_2287_1232656682.1487119602496
Content-Type: text/plain; charset=UTF-8

On Tuesday, February 14, 2017 at 5:16:35 PM UTC-5, HarD Gamer wrote:
>
> function-try-catch ex:   void A() try {} catch(...){}
>

First, don't post images when text will do a much better job. Second, stop
top-posting.

Third, what actual *problem* does it solve? And note that "I'd rather write
my code this way" is *not* a genuine problem. There is no power that this
feature would give you which you would be unable to have without it.

--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/b74c80d1-563c-496b-a47b-d7818af52d2b%40isocpp.org.

------=_Part_2287_1232656682.1487119602496
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, February 14, 2017 at 5:16:35 PM UTC-5, HarD Ga=
mer 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">fun=
ction-try-catch ex: =C2=A0 void A() try {} catch(...){}</div></blockquote><=
div><br>First, don&#39;t post images when text will do a much better job. S=
econd, stop top-posting.<br><br>Third, what actual <i>problem</i> does it s=
olve? And note that &quot;I&#39;d rather write my code this way&quot; is <i=
>not</i> a genuine problem. There is no power that this feature would give =
you which you would be unable to have without it.<br></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/b74c80d1-563c-496b-a47b-d7818af52d2b%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/b74c80d1-563c-496b-a47b-d7818af52d2b=
%40isocpp.org</a>.<br />

------=_Part_2287_1232656682.1487119602496--

------=_Part_2286_293967476.1487119602496--

.


Author: =?UTF-8?Q?Micha=C5=82_Dominiak?= <griwes@griwes.info>
Date: Wed, 15 Feb 2017 08:59:03 +0000
Raw View
--f403045de9520e0a4f05488de5eb
Content-Type: text/plain; charset=UTF-8

As far as I understand, this already exists in the language (and
coincidentally is the only way to capture exceptions thrown in a ctor init
list).

--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAPCFJdS%2BOFvsnKR8LEGdMODANpWzfUGVaDo8izeNovF2nun%3DhA%40mail.gmail.com.

--f403045de9520e0a4f05488de5eb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">As far as I understand, this already exists in the languag=
e (and coincidentally is the only way to capture exceptions thrown in a cto=
r init list).</div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAPCFJdS%2BOFvsnKR8LEGdMODANpWzfUGVaD=
o8izeNovF2nun%3DhA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAPCFJdS%2BOF=
vsnKR8LEGdMODANpWzfUGVaDo8izeNovF2nun%3DhA%40mail.gmail.com</a>.<br />

--f403045de9520e0a4f05488de5eb--

.


Author: Nicol Bolas <jmckesson@gmail.com>
Date: Wed, 15 Feb 2017 07:16:56 -0800 (PST)
Raw View
------=_Part_1940_94205367.1487171816524
Content-Type: multipart/alternative;
 boundary="----=_Part_1941_1920346281.1487171816524"

------=_Part_1941_1920346281.1487171816524
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wednesday, February 15, 2017 at 3:59:15 AM UTC-5, Micha=C5=82 Dominiak w=
rote:
>
> As far as I understand, this already exists in the language (and=20
> coincidentally is the only way to capture exceptions thrown in a ctor ini=
t=20
> list).
>

Not quite. If you use function-level try blocks, the catch blocks are not=
=20
considered part of the function itself. So they cannot `return`; they can=
=20
only `throw`. For some reason, the OP wants to be able to return from them.=
=20
Even though they are declare outside of the function.

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/09970ac7-82aa-46cb-91a3-38b55dea503e%40isocpp.or=
g.

------=_Part_1941_1920346281.1487171816524
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wednesday, February 15, 2017 at 3:59:15 AM UTC-5, Micha=
=C5=82 Dominiak 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">As far as I understand, this already exists in the language (and c=
oincidentally is the only way to capture exceptions thrown in a ctor init l=
ist).</div></blockquote><div><br>Not quite. If you use function-level try b=
locks, the catch blocks are not considered part of the function itself. So =
they cannot `return`; they can only `throw`. For some reason, the OP wants =
to be able to return from them. Even though they are declare outside of the=
 function.<br></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/09970ac7-82aa-46cb-91a3-38b55dea503e%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/09970ac7-82aa-46cb-91a3-38b55dea503e=
%40isocpp.org</a>.<br />

------=_Part_1941_1920346281.1487171816524--

------=_Part_1940_94205367.1487171816524--

.


Author: =?UTF-8?Q?Micha=C5=82_Dominiak?= <griwes@griwes.info>
Date: Wed, 15 Feb 2017 15:32:15 +0000
Raw View
--f403045de9524029b205489363ff
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 15, 2017 at 4:16 PM Nicol Bolas <jmckesson@gmail.com> wrote:

> On Wednesday, February 15, 2017 at 3:59:15 AM UTC-5, Micha=C5=82 Dominiak=
 wrote:
>
> As far as I understand, this already exists in the language (and
> coincidentally is the only way to capture exceptions thrown in a ctor ini=
t
> list).
>
>
> Not quite. If you use function-level try blocks, the catch blocks are not
> considered part of the function itself. So they cannot `return`; they can
> only `throw`. For some reason, the OP wants to be able to return from the=
m.
> Even though they are declare outside of the function.
>

That doesn't sound right.
<http://coliru.stacked-crooked.com/a/8a76fc5a3e24eee0>

> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/09970ac7-82a=
a-46cb-91a3-38b55dea503e%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/09970ac7-82=
aa-46cb-91a3-38b55dea503e%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoot=
er>
> .
>

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/CAPCFJdTrkxpJHAHdb6FUpoR2W3zpzhabuvkCz3uLcopc2MB=
0_A%40mail.gmail.com.

--f403045de9524029b205489363ff
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr">On Wed, Feb 15=
, 2017 at 4:16 PM Nicol Bolas &lt;<a href=3D"mailto:jmckesson@gmail.com">jm=
ckesson@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><d=
iv dir=3D"ltr" class=3D"gmail_msg">On Wednesday, February 15, 2017 at 3:59:=
15 AM UTC-5, Micha=C5=82 Dominiak wrote:<blockquote class=3D"gmail_quote gm=
ail_msg" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div dir=3D"ltr" class=3D"gmail_msg">As far as I understand,=
 this already exists in the language (and coincidentally is the only way to=
 capture exceptions thrown in a ctor init list).</div></blockquote></div><d=
iv dir=3D"ltr" class=3D"gmail_msg"><div class=3D"gmail_msg"><br class=3D"gm=
ail_msg">Not quite. If you use function-level try blocks, the catch blocks =
are not considered part of the function itself. So they cannot `return`; th=
ey can only `throw`. For some reason, the OP wants to be able to return fro=
m them. Even though they are declare outside of the function.<br class=3D"g=
mail_msg"></div></div></blockquote><div><br></div><div><a href=3D"http://co=
liru.stacked-crooked.com/a/8a76fc5a3e24eee0">That doesn&#39;t sound right.<=
/a>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr" class=3D"gma=
il_msg"><div class=3D"gmail_msg"></div></div>

<p class=3D"gmail_msg"></p>

-- <br class=3D"gmail_msg">
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br class=3D"gmail_msg=
">
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" class=3D"gm=
ail_msg" target=3D"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br cla=
ss=3D"gmail_msg">
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" class=3D"gmail_msg" target=3D"_blank">std-proposals@isocpp.org</a>.<b=
r class=3D"gmail_msg">
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/09970ac7-82aa-46cb-91a3-38b55dea503e%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" class=3D"gmail_msg=
" target=3D"_blank">https://groups.google.com/a/isocpp.org/d/msgid/std-prop=
osals/09970ac7-82aa-46cb-91a3-38b55dea503e%40isocpp.org</a>.<br class=3D"gm=
ail_msg">
</blockquote></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAPCFJdTrkxpJHAHdb6FUpoR2W3zpzhabuvkC=
z3uLcopc2MB0_A%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAPCFJdTrkxpJHAHd=
b6FUpoR2W3zpzhabuvkCz3uLcopc2MB0_A%40mail.gmail.com</a>.<br />

--f403045de9524029b205489363ff--

.


Author: =?UTF-8?Q?Daniel_Kr=C3=BCgler?= <daniel.kruegler@gmail.com>
Date: Wed, 15 Feb 2017 18:37:57 +0100
Raw View
2017-02-15 16:16 GMT+01:00 Nicol Bolas <jmckesson@gmail.com>:
> On Wednesday, February 15, 2017 at 3:59:15 AM UTC-5, Micha=C5=82 Dominiak=
 wrote:
>>
>> As far as I understand, this already exists in the language (and
>> coincidentally is the only way to capture exceptions thrown in a ctor in=
it
>> list).
>
> Not quite. If you use function-level try blocks, the catch blocks are not
> considered part of the function itself. So they cannot `return`; they can
> only `throw`. For some reason, the OP wants to be able to return from the=
m.
> Even though they are declare outside of the function.

The constraint of function-try-blocks that you describe here, relates
to constructors and destructors, not to other functions. The OP's
example involved a no such special member function and the syntax used
for the exception handling is already valid and allows to return
normally.

- Daniel

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/CAGNvRgAUBUgymJD5UAPMhBDzb1tdzJ-9K%2BWaT7JyKwEbT=
kgxQg%40mail.gmail.com.

.