220 31804 <CAF3xnJSBMmyno-AksyJJz5W=K4J=uY-ynYys3+v=mf5EzCp07w@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Alberto Barbati <albertobarbati@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: This variable should not be named: an identifier
 (not) to remember
Date: Tue, 28 Mar 2017 11:23:55 +0200
Lines: 103
Approved: news@gmane.org
Message-ID: <CAF3xnJSBMmyno-AksyJJz5W=K4J=uY-ynYys3+v=mf5EzCp07w@mail.gmail.com>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org>
 <CAFk2RUZ3+yru+cYSEtxJ1TbZuyWp71gpCGoq=WE_8EAE=+h=2g@mail.gmail.com>
 <7EF863A1-1454-4116-9164-676FF19BF923@gmail.com> <CAA7YVg1m+ZHyDdVf6UCVL98Ne_FvGt6SMNZd4OUgY3pHFyxNwg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a114e5364e385ce054bc704b2
X-Trace: blaine.gmane.org 1490693046 8064 195.159.176.226 (28 Mar 2017 09:24:06 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 28 Mar 2017 09:24:06 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCPY5DV6RIMBBLGX5DDAKGQEXMU4ITI@isocpp.org Tue Mar 28 11:24:01 2017
Return-path: <std-proposals+bncBCPY5DV6RIMBBLGX5DDAKGQEXMU4ITI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ot0-f197.google.com ([74.125.82.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCPY5DV6RIMBBLGX5DDAKGQEXMU4ITI@isocpp.org>)
	id 1csnLz-0000fT-BA
	for gclcip-std-proposals@m.gmane.org; Tue, 28 Mar 2017 11:23:51 +0200
Original-Received: by mail-ot0-f197.google.com with SMTP id u47sf61323907ota.4
        for <gclcip-std-proposals@m.gmane.org>; Tue, 28 Mar 2017 02:23:57 -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=6LbswMHCOKeUyUXKuwP3ZZ3RjJW/M+BgwtzXfSg+/K8=;
        b=UUbf/EGMMdj67IC2tqkmbrQWqgm48cAmDEEGd2Urk67VaWVPnJk3gqc+3yvVQ7+TzP
         MxOSqW70FTtG4YOUCzvo9tLZjto+2qtuxLlUl2EwexpC+oO7DMkY282Hru/P0yek+A5W
         B1GCY7st8l1FWWvg9zPgY2GHi8GphNZc8crg2dCnPIr4W9yc6hDzatAaEMoDR5z14YZc
         Ae5gk/ykYlqfy4Q9z7DA7yj+9NW4wIuGWwjyPceejsbVI3oDAbeETeq57cBVWbVT5sVo
         ae7FRfixs45Bx3pT7U8KUulXtOXWZBWRBNF5mYur76IIruDjxvH3yNJo/lut7+sFo/Tx
         VEsQ==
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=6LbswMHCOKeUyUXKuwP3ZZ3RjJW/M+BgwtzXfSg+/K8=;
        b=phjkQYlSUqg+Xk2k/otI/pg6R4qW3Xi8T9K7Jy4/YqcCDBZCn3y/lrym2spEdjE17U
         hGed+PPvCLGPPHidl5KCP/kEgW/vZFGj7EUdNOvC0McJe5rdRCZigi2jxyGLVLYCksp4
         7lALmyPeK08pOFpdSGZ8P1s79aDYz2ypteOR3Jx3Bbo8mhztFL/6Y+jEat+Li/AJkN1E
         XlntEORKvxUqvXcYkrsXCEIKpoj4YJ5r36VwLFSZB3f/XjPIyjINAWMuJvCgeReJowIb
         mOY/j1ZGQaXuSx4SUMtVXKnPDhId8sQyBLDtWB8eStm/kjMVBTp10ibl4SHMNPS2mFhi
         F7yA==
X-Gm-Message-State: AFeK/H3Psgpaux4TCXK9ZvtDeVOhq3Yt0thCArCGJfuII2MwHSshp72CWbhCVoKhgvRqxA==
X-Received: by 10.157.11.2 with SMTP id a2mr5531021ota.51.1490693037303;
        Tue, 28 Mar 2017 02:23:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.56.80 with SMTP id r16ls2143974otd.15.gmail; Tue, 28 Mar
 2017 02:23:56 -0700 (PDT)
X-Received: by 10.31.165.11 with SMTP id o11mr1220973vke.4.1490693036605;
        Tue, 28 Mar 2017 02:23:56 -0700 (PDT)
Original-Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com. [2607:f8b0:400c:c05::233])
        by mx.google.com with ESMTPS id x127si1448708vkb.62.2017.03.28.02.23.56
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 28 Mar 2017 02:23:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of albertobarbati@gmail.com designates 2607:f8b0:400c:c05::233 as permitted sender) client-ip=2607:f8b0:400c:c05::233;
Original-Received: by mail-vk0-x233.google.com with SMTP id z204so81282281vkd.1
        for <std-proposals@isocpp.org>; Tue, 28 Mar 2017 02:23:56 -0700 (PDT)
X-Received: by 10.31.88.1 with SMTP id m1mr1692703vkb.140.1490693036144; Tue,
 28 Mar 2017 02:23:56 -0700 (PDT)
Original-Received: by 10.176.74.93 with HTTP; Tue, 28 Mar 2017 02:23:55 -0700 (PDT)
In-Reply-To: <CAA7YVg1m+ZHyDdVf6UCVL98Ne_FvGt6SMNZd4OUgY3pHFyxNwg@mail.gmail.com>
X-Original-Sender: AlbertoBarbati@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 albertobarbati@gmail.com designates 2607:f8b0:400c:c05::233 as permitted
 sender) smtp.mailfrom=albertobarbati@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:31804
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31804>

--001a114e5364e385ce054bc704b2
Content-Type: text/plain; charset=UTF-8

2017-03-28 11:08 GMT+02:00 Viacheslav Usov <via.usov@gmail.com>:

> On Tue, Mar 28, 2017 at 8:22 AM, Alberto Barbati <albertobarbati@gmail.com
> > wrote:
>
> > Thanks a lot for the pointer! Whoa! This issue is ancient... I'll make
> sure the next version will have a reference to it and address the concerns
> it raises.
>
> This keeps coming back to this forum. For example, this:
> https://groups.google.com/a/isocpp.org/d/msg/std-proposals/ioi76TkG6g4/
> G8WC37LVAAAJ
>
> My take on this is that we should have an operator or a keyword that
> extends the lifetime of a temporary, as discussed here
> https://groups.google.com/a/isocpp.org/d/msg/std-
> proposals/ioi76TkG6g4/bdUinF-3AQAJ and subsequent posts, notably this
> https://groups.google.com/a/isocpp.org/d/msg/std-
> proposals/ioi76TkG6g4/bdUinF-3AQAJ and this https://groups.google.
> com/a/isocpp.org/d/msg/std-proposals/ioi76TkG6g4/5JrGmugAAgAJ
>

Thanks for taking the time to collect these links, I will have a look at
them.

As for having a keyword to extend the lifetime of a temporary, there is a
formal proposal for that (http://wg21.link/p0577), which I referenced in my
draft. However I believe P0577 does not address the issue of decomposition
declarations and has a greater syntactic cost (it re-uses the "register"
keyword). It's true that P0577 provides additional use cases, though, but I
am yet to be convinced of their usefulness.

Alberto

-- 
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/CAF3xnJSBMmyno-AksyJJz5W%3DK4J%3DuY-ynYys3%2Bv%3Dmf5EzCp07w%40mail.gmail.com.

--001a114e5364e385ce054bc704b2
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">2017=
-03-28 11:08 GMT+02:00 Viacheslav Usov <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:via.usov@gmail.com" target=3D"_blank">via.usov@gmail.com</a>&gt;</span>=
:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><di=
v class=3D"gmail_extra"><div class=3D"gmail_quote"><span class=3D"gmail-">O=
n Tue, Mar 28, 2017 at 8:22 AM, Alberto Barbati <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:albertobarbati@gmail.com" target=3D"_blank">albertobarbati@gma=
il.com</a>&gt;</span> wrote:<br><div><br></div><div>&gt; Thanks a lot for t=
he pointer! Whoa! This issue is ancient... I&#39;ll make sure the next vers=
ion will have a reference to it and address the concerns it raises.</div><d=
iv><br></div></span><div>This keeps coming back to this forum. For example,=
 this:=C2=A0<a href=3D"https://groups.google.com/a/isocpp.org/d/msg/std-pro=
posals/ioi76TkG6g4/G8WC37LVAAAJ" target=3D"_blank">https://groups.google.<w=
br>com/a/isocpp.org/d/msg/std-<wbr>proposals/ioi76TkG6g4/<wbr>G8WC37LVAAAJ<=
/a></div><div><br></div><div>My take on this is that we should have an oper=
ator or a keyword that extends the lifetime of a temporary, as discussed he=
re <a href=3D"https://groups.google.com/a/isocpp.org/d/msg/std-proposals/io=
i76TkG6g4/bdUinF-3AQAJ" target=3D"_blank">https://groups.google.com/a/<wbr>=
isocpp.org/d/msg/std-<wbr>proposals/ioi76TkG6g4/bdUinF-<wbr>3AQAJ</a>=C2=A0=
and subsequent posts, notably this=C2=A0<a href=3D"https://groups.google.co=
m/a/isocpp.org/d/msg/std-proposals/ioi76TkG6g4/bdUinF-3AQAJ" target=3D"_bla=
nk">https://groups.google.<wbr>com/a/isocpp.org/d/msg/std-<wbr>proposals/io=
i76TkG6g4/bdUinF-<wbr>3AQAJ</a> and this=C2=A0<a href=3D"https://groups.goo=
gle.com/a/isocpp.org/d/msg/std-proposals/ioi76TkG6g4/5JrGmugAAgAJ" target=
=3D"_blank">https://groups.google.<wbr>com/a/isocpp.org/d/msg/std-<wbr>prop=
osals/ioi76TkG6g4/<wbr>5JrGmugAAgAJ</a></div></div></div></div></blockquote=
><div><br></div><div>Thanks for taking the time to collect these links, I w=
ill have a look at them.<br><br></div><div>As for having a keyword to exten=
d the lifetime of a temporary, there is a formal proposal for that (<a href=
=3D"http://wg21.link/p0577">http://wg21.link/p0577</a>), which I referenced=
 in my draft. However I believe P0577 does not address the issue of decompo=
sition declarations and has a greater syntactic cost (it re-uses the &quot;=
register&quot; keyword). It&#39;s true that P0577 provides additional use c=
ases, though, but I am yet to be convinced of their usefulness.<br><br></di=
v><div>Alberto<br></div></div><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/CAF3xnJSBMmyno-AksyJJz5W%3DK4J%3DuY-y=
nYys3%2Bv%3Dmf5EzCp07w%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoo=
ter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAF3xnJSB=
Mmyno-AksyJJz5W%3DK4J%3DuY-ynYys3%2Bv%3Dmf5EzCp07w%40mail.gmail.com</a>.<br=
 />

--001a114e5364e385ce054bc704b2--

.
