220 33747 <CAOHCbitVe3+TZNqcdSyhORbjxABddavdZ5EGyi4zcO025t+cjQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: A more advanced switch
Date: Wed, 9 Aug 2017 16:37:09 -0400
Lines: 89
Approved: news@gmane.org
Message-ID: <CAOHCbitVe3+TZNqcdSyhORbjxABddavdZ5EGyi4zcO025t+cjQ@mail.gmail.com>
References: <f8c908e2-d06f-4cd1-bda0-fe2b97fd21f1@isocpp.org>
 <41733595.o4GQ0c89LU@tjmaciei-mobl1> <CAOHCbiv6n3oFG9Xj+QgPRhwdN2xDUV0zZvtYXXiALOXE3vOUhA@mail.gmail.com>
 <1532678.cu6QfydWbQ@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a114cb1b84e36da0556580b0c"
X-Trace: blaine.gmane.org 1502311035 32196 195.159.176.226 (9 Aug 2017 20:37:15 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 9 Aug 2017 20:37:15 +0000 (UTC)
To: Standard Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUZ5QWKNQIPNZFNZQCRUBDWEXBOQ@isocpp.org Wed Aug 09 22:37:08 2017
Return-path: <std-proposals+bncBCUZ5QWKNQIPNZFNZQCRUBDWEXBOQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f72.google.com ([74.125.83.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUZ5QWKNQIPNZFNZQCRUBDWEXBOQ@isocpp.org>)
	id 1dfXiz-0007wX-Qr
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Aug 2017 22:37:06 +0200
Original-Received: by mail-pg0-f72.google.com with SMTP id w187sf75839459pgb.10
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 13:37:12 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502311031; cv=pass;
        d=google.com; s=arc-20160816;
        b=xZzXXGvuObU7Pvs5KjzPHtjMahn4yyx6lxtspZUuHC0S15+2lQ1VG0fvjDpA75Nj1t
         i2qgvfmSaDwaFGTUGMCI/5AEvZBl/J1Q8fdEs/cCiet/oJEfJlQXg5SLyhtvLqoM9uRI
         4PrC4yP90nHip3vrgO+pXaxJHAZx747jk1yv4CUF4BQHKYhz7o5NZC9mHuGsmb7Ka0v6
         SHjjVsZj+nUfXbbfczjc/TsTgrBEU1kPvVlMNP+LIsDMqWJoWNUWQVsUv8o/r6DcTkX0
         YlOm8vFtnqR2nXI8nrHzEk/rwIw0hRMrGAe1q5wNwgyhggSf41/UNRYxmAeBViaK4DDn
         GWOg==
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:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=mFCpmWmaXGgiwm3Em/mu/qf3Q4TwUrtQVeoh9wHhwzY=;
        b=02qFeKD58gsynyuFOETiL1j/d0ASRBNWjSxQhiWPqoEzkP7MJcfj5DqPRjJVNp5k0P
         RAAq0P/lmjsw47v0QLqFqwssfuYwd6JsvyL+QQ3OIlgBTXvoDamZp+alaOlaUe16f4Za
         +cShtEoG7x5VYZZLtLb8gMBymEvyWtPWm5teneUQ8ST6HMfGnXN4PnM3PiJR4qskBkoo
         Nsc1ChU4i4dwpeWm1XRJ6fquA9tGkwODN3rVSuNo2z1KlERbOOOnv2al4t+XlbUAOJiE
         8PGqmkr6z3Jt9RzjLFqJO4rGxCHhCPkjyBGWhEHVDqSvKQXepMUch5X1lA0RAt8xP0tB
         7U2A==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=AuK6q3qj;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 2607:f8b0:400d:c09::233 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=mFCpmWmaXGgiwm3Em/mu/qf3Q4TwUrtQVeoh9wHhwzY=;
        b=F0xdjGz22tj+YSsgOwXU4cU/XapHpLFeL1hAmXyTyPjyQt003UZSGq1SRCRHczFZ7t
         OxelNzhMNfRZ+YHeVabQ/BBH60krW99q1tmQEvPOMhuRcsvwAolZch5O3qu/TC8hADh1
         PUe9NVZRy4XLU3CFA306ypPN0GvEM7SvoPmKAZBpIyFFOCTwHzWSjWSKQ01dFuLhX69i
         XnLaIMtkxKs5ZRxbGP/AolYxQoq/5KM0le/3KQo9fw4Yk6owUKHRggsmuGhYouBr2YU8
         Vnp3XfpGQc2EBXeoyAsM82uOMoyjmnjKipJv12GbAxe3uf7BU/+f7bekc9yGRlhvR2TG
         Kq3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to: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=mFCpmWmaXGgiwm3Em/mu/qf3Q4TwUrtQVeoh9wHhwzY=;
        b=gUEdvL13+DzNx7N8+ANUEQdJn760qybSyToIRZK5eavskyC6hxO13WsNFqYC8FUC1g
         zKEm0kAnE7xVjDrjphfZTfFDi6nBu9984SXYDLLRoCII5IjOVM1iGpBcm+G9RB+Vj/RU
         OgdwAA8Ugyq+EKZCi7biwiv3Xf4PSo5yU0dr0xwGgF1AMNaXFSHE0BMfyjytTGaKs1uu
         tHWetWhFs0owvT2sFmA7Cq/q2J7WefKMnjRaG0CAyzaHWEcr73fyKdjWGGBm/GzDNhZV
         2J4ZjwXr8SrD4C3Bt2aA7/BmlMeUASs+WODPQsVK8yi/vwcWKQpH1AG/nIOodzuyPH9o
         26zQ==
X-Gm-Message-State: AHYfb5httzsjkIYwKG33oriQl1f7nM9qoGaHWAPE0+lAnqeu//Eyqgk1
	UkD0yRWoVzH8nrTy
X-Received: by 10.99.7.134 with SMTP id 128mr5959819pgh.75.1502311031852;
        Wed, 09 Aug 2017 13:37:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.88.208 with SMTP id f199ls10317330itb.18.canary-gmail; Wed,
 09 Aug 2017 13:37:10 -0700 (PDT)
X-Received: by 10.200.4.145 with SMTP id s17mr13293406qtg.154.1502311030682;
        Wed, 09 Aug 2017 13:37:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502311030; cv=none;
        d=google.com; s=arc-20160816;
        b=g57vd7PP9NR0skr1OMusb+YockMjodzGr0Y687eHzulhi2ULQ9dKJ8SMH+Q12Kscwv
         QlUsiV4nkaMa0ZViOQMDqaSq1bpbPZn6An0pzqlYVxX7+aoq0rBQyw5d/THw/qa1ipzD
         84nJJ98ZGHOvSnCGkiV/c8KQi7UaT/nYNUklvePNKI1cQBR1Regrb6Ogfj0Owws5KacL
         7jeyh/VxeRSyummNvDRmxnI25Q5ODrbWOe1a7P+u5T4AJkO56qM++GSeEtIISXc8Rtn1
         Q0dIQAI1L2+39odAJdFExKPWl8QlNLc4YpnYX6LOFnqzPtZDPnMwRSyCRhfpOZkTnHOk
         ltuA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=IYK2j9IzR/nGI7gAGvSGSKw3ZrL0oL2OPD4lT8IRIG4=;
        b=W/pdoLLc3S/+lMOZGxfBO5DBFJ/8rXAMm1gOMNh0lqYaeBU7HeCCu6QPO1KXv85Pm9
         pw6INq2pPGdWFYeCRL9QlNkzoILGLCVRnKl1oitLCuLzefUDnXEm49RurDkoIIekA2BW
         5hnH2cFjmakk67d7E2WKOAG3GH8hReAg5agfYD35dRDyDyIrS9C1Jsx4aU/enTgdXFEB
         0IHvKG4CxPxmKtdXuOYgvsRe6G33crOPmB7o6miFlXT1l3B/VGNf1KZMZgbkoZ6o9ziV
         mSwM2NaNko+s1ZFESXmltrpuLEYbqnk0WsDbq8O6hNeQwFn2vjiBhw63yol5gYpXViQ1
         cm7A==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=AuK6q3qj;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 2607:f8b0:400d:c09::233 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com. [2607:f8b0:400d:c09::233])
        by mx.google.com with ESMTPS id o31si4119451qko.202.2017.08.09.13.37.10
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 09 Aug 2017 13:37:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 2607:f8b0:400d:c09::233 as permitted sender) client-ip=2607:f8b0:400d:c09::233;
Original-Received: by mail-qk0-x233.google.com with SMTP id z18so42607877qka.4
        for <std-proposals@isocpp.org>; Wed, 09 Aug 2017 13:37:10 -0700 (PDT)
X-Received: by 10.55.93.197 with SMTP id r188mr11922923qkb.277.1502311030336;
 Wed, 09 Aug 2017 13:37:10 -0700 (PDT)
Original-Received: by 10.237.42.10 with HTTP; Wed, 9 Aug 2017 13:37:09 -0700 (PDT)
In-Reply-To: <1532678.cu6QfydWbQ@tjmaciei-mobl1>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=AuK6q3qj;       spf=pass
 (google.com: domain of tvaneerd@gmail.com designates 2607:f8b0:400d:c09::233
 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;       dmarc=pass
 (p=NONE sp=NONE dis=NONE) header.from=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:33747
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33747>

--001a114cb1b84e36da0556580b0c
Content-Type: text/plain; charset="UTF-8"

On Wed, Aug 9, 2017 at 4:29 PM, Thiago Macieira <thiago@macieira.org> wrote:

> 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.
>
>
No really, case "a literal string":
It was the wild west of compiling, before even C was a standard.

So really, maybe this isn't pertinent information to the current
discussion, but it has been stuck in my head all these years.
-- 
Be seeing you,
Tony

-- 
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/CAOHCbitVe3%2BTZNqcdSyhORbjxABddavdZ5EGyi4zcO025t%2BcjQ%40mail.gmail.com.

--001a114cb1b84e36da0556580b0c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Aug 9, 2017 at 4:29 PM, Thiago Macieira <span dir=3D"ltr">&lt;<=
a href=3D"mailto:thiago@macieira.org" target=3D"_blank">thiago@macieira.org=
</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">O=
n quarta-feira, 9 de agosto de 2017 13:17:07 PDT Tony V E wrote:<br>
&gt; yep, basically.<br>
&gt;<br>
&gt; Once upon a time some compiler compiled that, and I agree, I wouldn&#3=
9;t<br>
&gt; guarantee what it returned.<br>
&gt; (I think the idea was that hitting the &quot;A&quot; case was an optim=
ization, and<br>
&gt; case default was to do a strcmp())<br>
<br>
</span>Like multicharacter literals?<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 int v =3D &#39;abcd&#39;;<br>
<br>
GCC and ICC warn about that by default. Clang only warns at -Wpedantic. MSV=
C<br>
does not warn even at -W4.<br>
<span class=3D""><br></span></blockquote><div><br></div><div>No really, cas=
e &quot;a literal string&quot;: <br></div><div>It was the wild west of comp=
iling, before even C was a standard.<br><br clear=3D"all"></div></div>So re=
ally, maybe this isn&#39;t pertinent information to the current discussion,=
 but it has been stuck in my head all these years.<br></div><div class=3D"g=
mail_extra">-- <br><div class=3D"gmail_signature" data-smartmail=3D"gmail_s=
ignature"><div dir=3D"ltr"><div>Be seeing you,<br></div>Tony<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/CAOHCbitVe3%2BTZNqcdSyhORbjxABddavdZ5=
EGyi4zcO025t%2BcjQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAOHCbitVe3%2=
BTZNqcdSyhORbjxABddavdZ5EGyi4zcO025t%2BcjQ%40mail.gmail.com</a>.<br />

--001a114cb1b84e36da0556580b0c--

.
