220 33744 <1532678.cu6QfydWbQ@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: A more advanced switch
Date: Wed, 09 Aug 2017 13:29:43 -0700
Lines: 24
Approved: news@gmane.org
Message-ID: <1532678.cu6QfydWbQ@tjmaciei-mobl1>
References: <f8c908e2-d06f-4cd1-bda0-fe2b97fd21f1@isocpp.org> <41733595.o4GQ0c89LU@tjmaciei-mobl1> <CAOHCbiv6n3oFG9Xj+QgPRhwdN2xDUV0zZvtYXXiALOXE3vOUhA@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 1502310596 13168 195.159.176.226 (9 Aug 2017 20:29:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 9 Aug 2017 20:29:56 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBOXBVXGAKGQEX7DUQZA@isocpp.org Wed Aug 09 22:29:52 2017
Return-path: <std-proposals+bncBCB4TK757YBRBOXBVXGAKGQEX7DUQZA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBOXBVXGAKGQEX7DUQZA@isocpp.org>)
	id 1dfXbp-0002jC-4k
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Aug 2017 22:29:41 +0200
Original-Received: by mail-wm0-f72.google.com with SMTP id m80sf713821wmd.4
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 13:29:47 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502310587; cv=pass;
        d=google.com; s=arc-20160816;
        b=s2htakG/EL/LU87y/dg7LhiJgQuyGvTQhnAt9Qe0G43Qtju9orLYb00bSrpEKDAi0c
         0jEAmU8KItluz1yjVTx/85a0dBiRKjIE312533Uc/to26Fi6G/NH19QNENN7Dq4czzVr
         LjH0TQCU4yjLqSULIeRKlQUlvFjAk549fkReHBkMPCMP/e58oNBvKSmkzGeIWuoziJYN
         XAgRZKvhhX8B3U1xWBzLAaoDowzOE4yB2etxknI3L96IibUNIFNYfUFhuaGsoMcjakt1
         6MyuAyj7SMfnaLVsZxTLTvgtLo6NgNOEQYgos5bHRrg1mou3kC3sfyA5u/uyDO6dxxHY
         GPtg==
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=8dAMCjwB4yb2ostDY7dHgT3wrV0/lIIQCioUC66P1AM=;
        b=mslaXVNHdPpoXBaqpl2VNZSny3/32ujaf4oRxBZLuovg4j9+b7n0ktUpR6COHtr6qV
         /wySavpA05F/21QYQ1EUY9jMVRc3PWo6VxcKVM9U0iACrU+vRd6EDmcx3X6Zpxn0IEkd
         pWqxSROkdaoGj44Rz3rkItHXPIsSg4zOFWPGapdvXHV/spovOovSeFTNH7r3jDYZjloj
         p/s6wtqcgDR4NFWbyuwPgcnKgdbzqEcr37tXvKvKSPUGoVhNFzo87fy0qq2JonUnlPum
         Sv3vaPXvnIzmmUduerea9mUSSEkLJgYH8UgPHKuz3ECyyTL5EMS3zlaclsfwZJbKIeZU
         DSzQ==
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=8dAMCjwB4yb2ostDY7dHgT3wrV0/lIIQCioUC66P1AM=;
        b=RuL3RDOdLafM5y+dYiHMOqZRB26JfLrAi8M3fOb+6AJtxrCmepA4r3B7W/38hE9LjO
         iFyQQhcVtDeq1REglVBNsrIVX5NJBiSlYWcLPRxKEa1G37kSgrUiw9L0TobYBNSj49Cd
         8C8s0IgRsT8/KFSg6Kj85hQ1/cKm5YFmiwzVEVRitqbrG+gSYgbE+5BSRd7O5+Bgs2v0
         PA7nXMiIyQW3l4tX6IccNTpY2EyzGLNK/l/X3J6MxOVRF1rr7vjB1ay/ELne9WklwlPZ
         d7tIHrBgbnI01Czuh74FPqVJe4S7eAWpXrBuNTDIC+KzCfSpEdtESsCC/xx0foiyKvsG
         qJRQ==
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=8dAMCjwB4yb2ostDY7dHgT3wrV0/lIIQCioUC66P1AM=;
        b=pf67jN/wHaLnY0h8Z9xMjkll7Px2oKtLQ+mZnlpOioeQaQwgY64LRmuRqb+9ylhsUJ
         gZ8KUoHyEHeVqdjSPL1Wu6DrC0Ux/JmEDVIeurnwP/m+uKDPjv+n7TpW9lwWdRDQDbSc
         YFMbJPHvQ+hZJDAqsUpVLGdkalMgKAVotDzggSgQcDwQT7UsbEoRBE5h7YWxI4oAT4Ez
         l4KxAqawKKB/S8y33rCcGArKyu9a6YUiwg9A9uognnJ5vzfy2nV9i7b1bH2CE2Vn2/Xd
         QDlNaIzPauuBpaasD5ClbMrDH3faTljhXoHWAA3e+r9jrAQUEDIJVylfGhbMGr9e6BLI
         kwkg==
X-Gm-Message-State: AHYfb5glZ1B92roADrENClVaxWoRCAnS9s7CfYkQSyUOEoqLI4W9oz9l
	TXI5UveZYrqmhMpZ
X-Received: by 10.28.151.11 with SMTP id z11mr167212wmd.3.1502310587370;
        Wed, 09 Aug 2017 13:29:47 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.155.66 with SMTP id d63ls1945811wme.1.gmail; Wed, 09 Aug
 2017 13:29:46 -0700 (PDT)
X-Received: by 10.28.232.144 with SMTP id f16mr2116280wmi.63.1502310586194;
        Wed, 09 Aug 2017 13:29:46 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502310586; cv=none;
        d=google.com; s=arc-20160816;
        b=MB5u8nrhSqDcbNNdw+vbrpxIoCDeCnR0QUywoRXXiHsLD+UDZO05EKFhdJhSDIRM7p
         JZo538yy5H1mOATwFSYDCJM0GPLQlllj6RrpzT/4MVujDvd00hoJ4FAbNm7HSvKhHU+o
         CmhtK7G61M7wuFO4TQfHojesytyDu9sGpLJsHmwbvtTNedXbA5j+yyDGSlQpqlD/ggNS
         Uq/GE8ce1ZTCErXr/ZH6yp/i+aStoTyxTE+pk9M/HFGOdSM3KKMxuNX4cyv4O6Nsdbij
         9CESdoA2q0Wr2dd/p6owukKgwh/cjVcCU2ZvcjYKPIUZULEo8x25b69LkVKdDB944HzN
         4Dwg==
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=f3cZKqJzcZz9Bw5dNPLErk3ud24FFVSzPZa6oQ1TrPo=;
        b=z43pK5Os6CnjfnSBscBygSuSZLiMWZWmh/beqS393GGQ9m3siu1etEdKxyMzH6YdVK
         NCtNyq9CRyPrgEBGbPPqYe2+ime8DN62L2h1F2wPHbkiodXJNHNHnaGq3SnWVTPp3al3
         iWUolA8aLu5lQcKNvtnun20eA5tqMrXIxgTgl1DRmY9KsM4CJdF6KdrrTmlh59RsQa0b
         r37llJaIDOEBTo1RFHkMMdA9XX85pzHNXF+I1UYI8qkjM5YstlrGp8y/cuCNKmOiQk0g
         Sm3CW8cjDlcu1PmvV9vGGSV90w0fRSFadAd+lnOCq8Tzx+N0P4yGOAmb+wqWKn2Ae7vV
         foTg==
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 v143si3718863wmd.96.2017.08.09.13.29.46
        for <std-proposals@isocpp.org>;
        Wed, 09 Aug 2017 13:29:46 -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 [192.55.54.45])
	by gondolin.macieira.info (Postfix) with ESMTPSA id AF6B411B6C6
	for <std-proposals@isocpp.org>; Wed,  9 Aug 2017 13:29:45 -0700 (PDT)
In-Reply-To: <CAOHCbiv6n3oFG9Xj+QgPRhwdN2xDUV0zZvtYXXiALOXE3vOUhA@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:33744
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33744>

On quarta-feira, 9 de agosto de 2017 13:17:07 PDT Tony V E wrote:
> yep, basically.
> 
> Once upon a time some compiler compiled that, and I agree, I wouldn't
> guarantee what it returned.
> (I think the idea was that hitting the "A" case was an optimization, and
> case default was to do a strcmp())

Like multicharacter literals?
	int v = 'abcd';

GCC and ICC warn about that by default. Clang only warns at -Wpedantic. MSVC 
does not warn even at -W4.

-- 
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/1532678.cu6QfydWbQ%40tjmaciei-mobl1.

.
