220 31790 <CANh-dXm5Bb-w+89ZVMESVqzGEz7yjiQYQp9gVrn8Om1jXuKyfg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "'Jeffrey Yasskin' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: This variable should not be named: an identifier
 (not) to remember
Date: Mon, 27 Mar 2017 15:16:58 -0700
Lines: 91
Approved: news@gmane.org
Message-ID: <CANh-dXm5Bb-w+89ZVMESVqzGEz7yjiQYQp9gVrn8Om1jXuKyfg@mail.gmail.com>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org> <2752007.h0gmCLmLCc@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=94eb2c08046adb8594054bbdb4b4
X-Trace: blaine.gmane.org 1490653047 3624 195.159.176.226 (27 Mar 2017 22:17:27 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 27 Mar 2017 22:17:27 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDDM34EO6QDRB34643DAKGQELPGI2QQ@isocpp.org Tue Mar 28 00:17:22 2017
Return-path: <std-proposals+bncBDDM34EO6QDRB34643DAKGQELPGI2QQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f69.google.com ([209.85.218.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDDM34EO6QDRB34643DAKGQELPGI2QQ@isocpp.org>)
	id 1cscwt-0008CE-Ju
	for gclcip-std-proposals@m.gmane.org; Tue, 28 Mar 2017 00:17:15 +0200
Original-Received: by mail-oi0-f69.google.com with SMTP id f193sf52831792oib.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 27 Mar 2017 15:17:21 -0700 (PDT)
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:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=gL9oLmx1rXtr02ySF77jybBW90ASBQkSKgApWiAzPQs=;
        b=q2yc6+Vzd3mkO/5G32ifc9vOTb0eEIrOPfnerxkfL8SoFSIE+Z1I3xmBWAbkadJ/xJ
         SFlK7BNLE/bKmudBivhhN0lEETlD0vp8Aut5OVt8Z2z/bIRIhvmhJy09RnS/o3qtosff
         xsQNyr06tCoVz8Jg8hYGrW5vRgdQ71Bl4sx32P5VCX31c50A6gz59WdOnKGxXLDZNQS1
         8Jq40WZNd/f/5EHQqJ48bA9d78BkhAPql1MSY/ALX/V2LlYBJJIPpON81xDJRne0gcsN
         sI3drw2hegppNNAYwmn9ABqJ7Jxl0eRsRh82WK8IL4+4FulS2zANy8Ta4H1C5CSPa5YE
         /T+g==
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=gL9oLmx1rXtr02ySF77jybBW90ASBQkSKgApWiAzPQs=;
        b=He3r3X187Xo7TG0LEOnus8i8fSy49a3mR7+rCSr2R8vEiifyUSqHGEXZyJoDXVf0dg
         8vCd9xwBoJifgXyk5yTxk+kEA+bmz3a0fdqDGagZUpAq9xG3+JhFJpp54aalAOhwVoqz
         8n/pt7BGuTLFIo5tQ4dpylZMXae9kaaTe5HekPA7YSxsgDJT+qGurh6Eb+HbilGzNDkA
         LFgs7KzY7oaS1UAOLxfb0OKHDP5LUHDKhx3uT3H3j2xGrATWLzrDMro5/SiFm9utprBp
         r4zYw4QhYYr2kR9d9lnYep9OAvAIu6fpvRTpylKXO1hZP/YuaAyOD+SVijLbd+yabtFQ
         uTRA==
X-Gm-Message-State: AFeK/H0tlKNPaU5P80imykkb6y6dF4TRNNlvO0Y0yyP7hbJl5fpkBeogAqrIYu1Y5shU8A==
X-Received: by 10.157.3.9 with SMTP id 9mr6878513otv.100.1490653040224;
        Mon, 27 Mar 2017 15:17:20 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.38.42 with SMTP id a39ls1250433otb.38.gmail; Mon, 27 Mar
 2017 15:17:19 -0700 (PDT)
X-Received: by 10.31.84.66 with SMTP id i63mr10430178vkb.157.1490653039516;
        Mon, 27 Mar 2017 15:17:19 -0700 (PDT)
Original-Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com. [2607:f8b0:400c:c05::22c])
        by mx.google.com with ESMTPS id c188si792367vkh.91.2017.03.27.15.17.19
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 27 Mar 2017 15:17:19 -0700 (PDT)
Received-SPF: pass (google.com: domain of jyasskin@google.com designates 2607:f8b0:400c:c05::22c as permitted sender) client-ip=2607:f8b0:400c:c05::22c;
Original-Received: by mail-vk0-x22c.google.com with SMTP id d188so68797494vka.0
        for <std-proposals@isocpp.org>; Mon, 27 Mar 2017 15:17:19 -0700 (PDT)
X-Received: by 10.159.41.131 with SMTP id s3mr8893491uas.72.1490653038693;
 Mon, 27 Mar 2017 15:17:18 -0700 (PDT)
Original-Received: by 10.31.137.142 with HTTP; Mon, 27 Mar 2017 15:16:58 -0700 (PDT)
In-Reply-To: <2752007.h0gmCLmLCc@tjmaciei-mobl1>
X-Original-Sender: jyasskin@google.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@google.com;       spf=pass (google.com: domain of
 jyasskin@google.com designates 2607:f8b0:400c:c05::22c as permitted sender)
 smtp.mailfrom=jyasskin@google.com;       dmarc=pass (p=REJECT sp=REJECT
 dis=NONE) header.from=google.com
X-Original-From: Jeffrey Yasskin <jyasskin@google.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:31790
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31790>

--94eb2c08046adb8594054bbdb4b4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 27, 2017 at 2:30 PM, Thiago Macieira <thiago@macieira.org>
wrote:

> On segunda-feira, 27 de mar=C3=A7o de 2017 13:27:11 PDT Alberto Barbati w=
rote:
> > Hello,
> >
> > this is a draft for a proposal to add a special meaning to the identifi=
er
> > __ (double underscore) so that it can be used (even repeatedly in the
> same
> > lexical scope) for all variables whose name is not important and that i=
s
> no
> > longer needed after declaration. The draft includes a few examples.
> >
> > Is there any interest in this?
>
> Just remember that there are already existing codebases using __ as
> identifier
> or macro names.
>

They're not allowed. "_" is ok outside of the global namespace, but "__" is
reserved by [lex.name].

Jeffrey

--=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/CANh-dXm5Bb-w%2B89ZVMESVqzGEz7yjiQYQp9gVrn8Om1jX=
uKyfg%40mail.gmail.com.

--94eb2c08046adb8594054bbdb4b4
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">On M=
on, Mar 27, 2017 at 2:30 PM, Thiago Macieira <span dir=3D"ltr">&lt;<a href=
=3D"mailto:thiago@macieira.org" target=3D"_blank" class=3D"cremed">thiago@m=
acieira.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span c=
lass=3D"">On segunda-feira, 27 de mar=C3=A7o de 2017 13:27:11 PDT Alberto B=
arbati wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; this is a draft for a proposal to add a special meaning to the identif=
ier<br>
&gt; __ (double underscore) so that it can be used (even repeatedly in the =
same<br>
&gt; lexical scope) for all variables whose name is not important and that =
is no<br>
&gt; longer needed after declaration. The draft includes a few examples.<br=
>
&gt;<br>
&gt; Is there any interest in this?<br>
<br>
</span>Just remember that there are already existing codebases using __ as =
identifier<br>
or macro names.<br></blockquote><div><br></div><div>They&#39;re not allowed=
.. &quot;_&quot; is ok outside of the global namespace, but &quot;__&quot; i=
s reserved by [<a href=3D"http://lex.name">lex.name</a>].</div><div><br></d=
iv><div>Jeffrey</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/CANh-dXm5Bb-w%2B89ZVMESVqzGEz7yjiQYQp=
9gVrn8Om1jXuKyfg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CANh-dXm5Bb-w%2=
B89ZVMESVqzGEz7yjiQYQp9gVrn8Om1jXuKyfg%40mail.gmail.com</a>.<br />

--94eb2c08046adb8594054bbdb4b4--

.
