220 33525 <4126837.jZlGhgVnua@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Catch block for multiple exceptions
Date: Wed, 02 Aug 2017 00:12:40 -0700
Lines: 26
Approved: news@gmane.org
Message-ID: <4126837.jZlGhgVnua@tjmaciei-mobl1>
References: <effe744d-f832-42c7-9b2a-ef31551067d0@isocpp.org> <deaedeb0-a699-49e9-826a-c41e674902c0@isocpp.org> <CAEfefmzCWDwP2ha7UfvvPrW_56TT4DEgvwRyxWm=6gS_GZc7pA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1501657962 24447 195.159.176.226 (2 Aug 2017 07:12:42 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 2 Aug 2017 07:12:42 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB27WQXGAKGQE5T2KOQQ@isocpp.org Wed Aug 02 09:12:38 2017
Return-path: <std-proposals+bncBCB4TK757YBRB27WQXGAKGQE5T2KOQQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f197.google.com ([209.85.128.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB27WQXGAKGQE5T2KOQQ@isocpp.org>)
	id 1dcnpd-000668-P9
	for gclcip-std-proposals@m.gmane.org; Wed, 02 Aug 2017 09:12:37 +0200
Original-Received: by mail-wr0-f197.google.com with SMTP id z53sf4922539wrz.10
        for <gclcip-std-proposals@m.gmane.org>; Wed, 02 Aug 2017 00:12:44 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501657964; cv=pass;
        d=google.com; s=arc-20160816;
        b=OJijDet0HjZLloeYgYwi8JXnibGm8oHGbrhtKuWhvMYk7pq+4zUdqN9mTpoWU9huZO
         k979sDkEGHdkl1mQrgciceq+AZ9hJzESzXaogz+718qquNssWwpMhLEvR/VdJXaYHNTZ
         RPlBSDz/wxDK5+rzF32oDTwS2DD4bxCjbBt3WePf5ppLq3BgHZpcLACTqvpjaCJJqLqX
         Kctd2qZI4CvaVA6L4punjGsxcujaF3lSjqGDH3yygtktAVIoZAws29l3S3xyN+SpyBaX
         UcA3wcvuBVlQOE5Ky7NKzgfYZO6S1BmcvurQ8VCcZhVecbr3w5mjvAkXYRRTrMDrsbOs
         zRgQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=/OROc7FHdnB8zVct1ODpLBeQ+QiJRtIiSHNaBlQp6Uw=;
        b=t5xfNfChLmqdeSbiA+k3XFr66gtN1JwgfpIUA7znRVTcgviQDINAz8CXAM8SUws4Pg
         HIqNAyd7TkMzK/yn/RuNdu1D3IBJzeSfnb2daedIoLV3jMBwlL6NIHLUVEaKfIE9Yfkx
         qS+TT+87pGqAsi1bIgodrVfMw2qNMdUVCQmRwpCbZbQCikVep/4WJnqPA1DFzqBh6YoR
         O33YsJ/xniMf/9M3fiHYH2Ar3irCbIlFgEYfvUizFmJiPDW8saXZLuPAwR0ry2OFoTOw
         SjI4x1PTOydQ4Ay1Zlh6IfDj+1vFFoPW8s+NOD9lHU3S2/Q+WUfhGvt0lqzREFkQ3SO9
         a6/g==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=/OROc7FHdnB8zVct1ODpLBeQ+QiJRtIiSHNaBlQp6Uw=;
        b=F0xadVw7YS8YBxjRdF6VnCDhmAyIgmQTbmVq+pewLx11kNynNtAwg4w2xWHMSM6ZNb
         ZIIm2jgt3rcJ4qOktZgGwFeVUDOHGCiNsc/0zVTqE6v7WyGdx+qoUHgv5jmPOfq6VMZ3
         Vm/sQkUDOW9oTUeBBOZbbmxWKPjSJ4jbiqmLhR38R94v9c7vQMC6q0JMFbi0sn/fNZOY
         gpk1DzcpnhCj5KvXacRgyMxeQSfoNgpq4eosJN7kJ+4XQt6mDLQjvosgrHLkx6SVDCpR
         4Q4evLjmKuOJ5Q1eIe7bYWvHAgO4jcykle1qj29R2gPyj2m14Mzs/F4sl5OUU3uMXaPG
         kvCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=/OROc7FHdnB8zVct1ODpLBeQ+QiJRtIiSHNaBlQp6Uw=;
        b=ZonQy59infYAHTwrJHu551i0t4bNbthp5TCXaU4LZIB6Cq4x+qv89icfT69RSl4lfv
         zHSfKUNCDKGSt2zgj9cYKFkAEUxovKkl+WH8fHGkcHjhKOkK3jomnQiaswxSpH42BnOe
         dUiGPuDvq+O4ytVhbGk3EnBoJyIJRAgTOtOWLkKfzUShE4O6SDTmiiAI/LStBWUJraU/
         2upmexNDAdJRF/GRRDJ5GnWlfQmkJP6sdvh9qkEYIRLuenp+cqsC7LFg2B3YC6sXhyd1
         XkPTDZ3Zs3AaZNab5+BsULcKaRueVGrTKxi3OU+tyx220GAIJuXgeHlSItqzteSGaLAE
         OM6Q==
X-Gm-Message-State: AIVw1121/FH7HCRKuZQtfmxJi8c5oVL6oaIGOI/ph31pj7PPs0aOl1De
	JyMIEIlzrNddHVDx
X-Received: by 10.223.171.166 with SMTP id s35mr1253108wrc.4.1501657964118;
        Wed, 02 Aug 2017 00:12:44 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.22.137 with SMTP id 131ls596565wmw.24.canary-gmail; Wed, 02
 Aug 2017 00:12:42 -0700 (PDT)
X-Received: by 10.28.69.215 with SMTP id l84mr2899664wmi.118.1501657962848;
        Wed, 02 Aug 2017 00:12:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501657962; cv=none;
        d=google.com; s=arc-20160816;
        b=EwPaIyUZpWMapDlr8gE+TilJwUSKl9n8c5HtnE6N/n2pk4TgMzjxGR0m5r76I7xVhY
         hfqvY9MxxKxBMIwfHzkr+vH7Zd5PyPOjM5IyHrzXexqsW8q191OBYcXMYQq9CsfHOG8P
         vqXaURkXfHPEKkC54u2jEKt5iunOPP8eD7eeUwagnjw70F0HBo4pOwe4eksaX2MYxXi9
         +GqDmFDUSZVjXFEZ5rNZLAYpDdmCU42VIpLms7cU7pSYMWbQaWzVIXiYgsYNNp9xD+zg
         quaZMkQvnN9oK9dopJaRG2gpH9lXT5lyv8VHK17q+WEr70JGEMEcjUBSfY5cq16RMQEm
         LW5Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=GQq0fH11GAJpbL0DyRgOZabdp6/wgL7Ft2cF9RXrO4c=;
        b=hy7blCcx8ySCNpXttwGCivRx8EMXHM3BJkSqLPB3TaMjPSkm5MviQqeRq03aFZIOjT
         woXG2sMCE4zsAbvB8R7OjNFvgJqnnV1KLVgZ93iSRQeFS3Aq4DNi3VQQ4+ItcanwEkyk
         X1kuJUHlqC6IKejdUaX7UreulN3x0ZHui/ek6QoekP44XrkegOHNL316CZWhZ416Svx3
         FKWgfSY1MH6tcaLvNYCFB9V1bn/TUVd8izpSNEGJKcFNNglib0TwwV/gfca3cEW08uFa
         4iwVKJlC2oOWMrU8SCGMHM294ST+eov+uGH3ZNq+JDFZG2WXwIYM16fOGGv19EaqtHT9
         VPdg==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id y43si30916276wry.105.2017.08.02.00.12.42
        for <std-proposals@isocpp.org>;
        Wed, 02 Aug 2017 00:12:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:380f:dc65:1281:8c99])
	by gondolin.macieira.info (Postfix) with ESMTPSA id D24A311B5B5
	for <std-proposals@isocpp.org>; Wed,  2 Aug 2017 00:12:41 -0700 (PDT)
In-Reply-To: <CAEfefmzCWDwP2ha7UfvvPrW_56TT4DEgvwRyxWm=6gS_GZc7pA@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:33525
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33525>

On Wednesday, 2 August 2017 00:04:35 PDT Dejan Milosavljevic wrote:
> catch (exceptionA, exceptionB, exceptionC e) {
>    f(e);
> }
> 
> Questions:
> 
> - How to know which exception invoke this catch?
> - If catch was invoked by exceptionA what is the content of exceptionC?

If we adopt this syntax, then the above cannot be well-formed: if catching 
multiple types, then no variable names must be specified.

And how to know which one invoked? You don't. If you wanted to know if it was 
exceptionA, you'd add a catch block for it.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/4126837.jZlGhgVnua%40tjmaciei-mobl1.

.
