220 30905 <09970ac7-82aa-46cb-91a3-38b55dea503e@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Try-Catch function
Date: Wed, 15 Feb 2017 07:16:56 -0800 (PST)
Lines: 70
Approved: news@gmane.org
Message-ID: <09970ac7-82aa-46cb-91a3-38b55dea503e@isocpp.org>
References: <76d9ab0e-4a74-401d-85ad-327f912a1bb7@isocpp.org>
 <CAGNvRgC_Yqj=mMYXVhOpjFMOAY9OurbeMukmkMtJWqKx9sreBA@mail.gmail.com>
 <CAJe+aq8ZYAXgWTuM6DV6NbaGByrLfoXUEz_q1_hJEWT7YrxEvA@mail.gmail.com> <b74c80d1-563c-496b-a47b-d7818af52d2b@isocpp.org>
 <CAPCFJdS+OFvsnKR8LEGdMODANpWzfUGVaDo8izeNovF2nun=hA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1940_94205367.1487171816524"
X-Trace: blaine.gmane.org 1487171820 32384 195.159.176.226 (15 Feb 2017 15:17:00 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 15 Feb 2017 15:17:00 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBB2PBSHCQKGQESVHMZIQ@isocpp.org Wed Feb 15 16:16:52 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBB2PBSHCQKGQESVHMZIQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f197.google.com ([209.85.192.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBB2PBSHCQKGQESVHMZIQ@isocpp.org>)
	id 1ce1K8-0007jW-77
	for gclcip-std-proposals@m.gmane.org; Wed, 15 Feb 2017 16:16:52 +0100
Original-Received: by mail-pf0-f197.google.com with SMTP id c73sf184580493pfb.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 15 Feb 2017 07:16:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=pZf6XQ/nK0D24z4sqR6y2NVH6W+OCzXNHJtGs1AVM1Q=;
        b=mK7J9mNkPeLwg+dbcmqYu7+GvRdpNhxT624aLcytT3sZqzzioYPu/yNNDoAuV8Y462
         YuJa9GmbGM4D6blh26BGltUm8v/An7HFPscAQlLocywrVhHGLLKCTrzcE6eLK7cPSQB7
         8HwiVhj5BhxpsLal/bIogaS4H7oyKebgCOJuW4oCmNhXpdmQmQZdbG6xfakaQHryNTRB
         HXiaus/25AH23vgUyxn+swg1s8QYObcDmPmLRinfGWAFW6so+2TzpfVqwzpVzjbAckan
         X5MXTU16j+VdFidNG/WKQMI98jYFaAl8vwPzjyR5qN1JttQL1FP+ZaSZ0NgRmCHswFMs
         wdKg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=pZf6XQ/nK0D24z4sqR6y2NVH6W+OCzXNHJtGs1AVM1Q=;
        b=pSReNUgqiwRP8R0m8+Wyr8NoJWs1mAvmGsKFbXjGjPr5aH5c3Uqp+om8s4EK8o4cdi
         /GYpOqDhI0hS+EK2tStcf+Snl/jIKEK2X0pvP6n4x/NqIQZNYairjkTx2ELMVpMxozfb
         o3NmP5HlOJhL9EE2z1zOveqOkqcQZZnyouUpNePkbnmJDPfBoIOivXAaEBOpb9NQO4XD
         a8/M7lPt68KFb73JfMv+7WKHMZlbeHSkaKMPgtwxvi6iW3opVGHXXonXcR2/PSlzVmIH
         6I5QIZ1bZhwbt4bVniReGxyWCe+PnEYj34l83pI15za1pEgJ6rd/mqon52S9WZDi+fCo
         GCJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=pZf6XQ/nK0D24z4sqR6y2NVH6W+OCzXNHJtGs1AVM1Q=;
        b=BRYdPe2lXa6fQfpqUFVVIdkIX3Xrnjcc8fKRTYxU7ojthdo5JZMN0h7CNZEh32OhGS
         VtnxWeH3nRWT6maM1Ovcpgz0ssrPy1olNAMgf+Lxc4ZDpZQhlCzPS20CnQdXkJiGJFCm
         sKnnVB277q1B44r0R5zPn7wPus0OLIaRwN7Wzyzm94GIouE+fD8Ef+bpFtVqwSBZdTBF
         4SItjRaxA4TpKKHE1bvWKZOl9pXN3p0Nk//3Gt+5CZsdLTCVPSf/1YzeX89uivSKoWGR
         barGMMLk+4k9VyTI7xIFlojd/f/LPlEXCLRI+3JDCVVI4h/w4UhytP/+1ytzy08RsrqB
         alCw==
X-Gm-Message-State: AMke39kvw1WMaOEag/KuWT+Y1GBift9VB5uxdCUce4nsWBSB5yEd3B29b9JpebI79axfXw==
X-Received: by 10.99.143.26 with SMTP id n26mr828112pgd.80.1487171817887;
        Wed, 15 Feb 2017 07:16:57 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.13.120 with SMTP id 111ls279806oti.43.gmail; Wed, 15 Feb
 2017 07:16:57 -0800 (PST)
X-Received: by 10.157.8.10 with SMTP id 10mr2572536oty.19.1487171817117;
        Wed, 15 Feb 2017 07:16:57 -0800 (PST)
In-Reply-To: <CAPCFJdS+OFvsnKR8LEGdMODANpWzfUGVaDo8izeNovF2nun=hA@mail.gmail.com>
X-Original-Sender: jmckesson@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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:30905
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30905>

------=_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--

.
