220 24619 <56CC82E9.8070601@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: throwaway variable
Date: Tue, 23 Feb 2016 11:03:53 -0500
Lines: 33
Approved: news@gmane.org
Message-ID: <56CC82E9.8070601@gmail.com>
References: <9658e852-6254-4ecf-a6d4-879160d4de7d@isocpp.org>	<CAKiZDp0Q9VFSd9ONVDH8hJdhcFQ8daU12yLCSXB69UcRBcMj3Q@mail.gmail.com>	<CAA7YVg1T2WQM5fzckDE5oczmAycJt-cibZ_iYvWp4SzgkGLpQQ@mail.gmail.com>	<naf9ro$36k$2@ger.gmane.org>	<CAA7YVg2QppYXRg-zGEnD4+m5yET4fisd0BhXLyGwMaRZgNe6tQ@mail.gmail.com>	<nafi40$lve$1@ger.gmane.org>	<CABuNDZSXRcaZPoYGSbcCLK1x3p70jzxLCeuVO07Mpu=D41M5tw@mail.gmail.com>	<nafnu1$1ue$1@ger.gmane.org>	<CAA7YVg2=jXgrMK-ud6VzMim0R2eHAr_MWXUmfY9_a2Lbq-RKLA@mail.gmail.com>	<nahrvg$nc5$1@ger.gmane.org>	<CAA7YVg1oopar_hXR2B9AxWYeYpKitf7gm+3mwyyi-mOWDB+PZw@mail.gmail.com>	<nahujh$76q$1@ger.gmane.org> <CAA7YVg2-dEDh-pK=ET0DL41yM+bfTjGr5h=igkeRh2ZxK+dOuA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1456243452 32082 80.91.229.3 (23 Feb 2016 16:04:12 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 23 Feb 2016 16:04:12 +0000 (UTC)
Cc: potswa@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBB4MFWK3AKGQEYFCNC6Q@isocpp.org Tue Feb 23 17:04:05 2016
Return-path: <std-proposals+bncBC37LBFWUIFBB4MFWK3AKGQEYFCNC6Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC37LBFWUIFBB4MFWK3AKGQEYFCNC6Q@isocpp.org>)
	id 1aYFRU-0006MB-KV
	for gclcip-std-proposals@m.gmane.org; Tue, 23 Feb 2016 17:04:04 +0100
Original-Received: by mail-wm0-f69.google.com with SMTP id a4sf62170636wme.2
        for <gclcip-std-proposals@m.gmane.org>; Tue, 23 Feb 2016 08:04:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :content-type:cc:user-agent:in-reply-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=CZQvJsRwQxS1f0g1tSrjUlBMpxs5XDx8NU9crNd0pWs=;
        b=Cpjwggwo4LGSihO+6cHgxWBde6KEQsCTnAIHGmFH7VRHkYDOHbwh+Kld7nMw5OgR5f
         HOqmqc1lNNVx6NCG+iHk/6FZNCkEEwsEUXqYwDAozqRAg8ojEf1HE/Do28kMjIawjPB8
         HVemdvkOXaxcrZ5ImjrkTUEC/GzUlTuNsUe3O05reR5BXYiPBe/qsHDcbwXIftPSLYce
         tjx0TQG/BYrTJPG1u6I/Wowg3vr4khaBHqFI4GJdMYQk9qydQspLJCHdM83BYHnJPk0+
         IeSrYHKA57XVnrg5DKxSBHcZAU++V11mT+1oPhExDl7M5h0Hi4QHvTmDnSLlQWn6+F9p
          
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:cc:user-agent:in-reply-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=CZQvJsRwQxS1f0g1tSrjUlBMpxs5XDx8NU9crNd0pWs=;
        b=TZ6bOWqqfQu953wWiOQ/QFy6x90deHQHCnxrVB1yTy59hnk1fM6cX0ijuDUT/tuCU5
         LSOeMw5FxWsZipGP62Btg/2UxpCB4BQxu4cV9YtgSp+XDq+neIVqomaNrKl9aBuwK09E
         HdbI/SRWU4G/w3uvOKqyb8jVn5Lg/k+s0PpMCYmgddVL1PCbrPW2paYp5pW5lzbcOSZQ
         haCgco1BiAdGRL/1MO0veAiWCrmfwGaLInEJoQ1u5/Z4g3ESmZoxoeyyN6HxvvPTOUte
         F7wlXxPEynskNimeaDsjeU0WHB6WPSTGx2de/Spdx7cwPP+v373THyas2Q+y1Z60XthW
      
X-Gm-Message-State: AG10YOQ04C5xEl9rVf1KOnF8hZXmzUKRpRZ4ev72S/DuX0pLla+1aLuFj9UG8axVKybOxg==
X-Received: by 10.194.172.40 with SMTP id az8mr4256436wjc.3.1456243444102;
        Tue, 23 Feb 2016 08:04:04 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.142.213 with SMTP id q204ls458886lfd.15.gmail; Tue, 23 Feb
 2016 08:04:00 -0800 (PST)
X-Received: by 10.25.211.70 with SMTP id k67mr12640750lfg.119.1456243440782;
        Tue, 23 Feb 2016 08:04:00 -0800 (PST)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id jg7si145426lbc.113.2016.02.23.08.04.00
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Tue, 23 Feb 2016 08:04:00 -0800 (PST)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1aYFRP-0006Io-G4
	for std-proposals@isocpp.org; Tue, 23 Feb 2016 17:03:59 +0100
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 23 Feb 2016 17:03:59 +0100
Original-Received: from mwoehlke.floss by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 23 Feb 2016 17:03:59 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 26
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To: <CAA7YVg2-dEDh-pK=ET0DL41yM+bfTjGr5h=igkeRh2ZxK+dOuA@mail.gmail.com>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=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-Spam-Checked-In-Group: 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:24619
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24619>

On 2016-02-23 10:49, Viacheslav Usov wrote:
> On Tue, Feb 23, 2016 at 4:41 PM, Matthew Woehlke wrote:
>> ...wasn't there a proposal floating around to do that automatically,
>> though?
> 
> I am not aware of a such a proposal; any pointers?

http://wg21.link/n4221 ...and you may want to ping David Krauss (CC'd)
as to what ever happened with it, as I don't recall offhand.

> If that proposal pins a temporary to the scope when it is used in some
> particular way, then perhaps it would be equivalent. But then one of those
> "particular ways" should include something that the equivalent of
> 
> {
>     @std::lock_guard(mutex);
>     // do things
> }
> 
> were easily expressible.

I don't think it tried to cover this; only where the entity was still
accessible, albeit indirectly or only partially.

-- 
Matthew

-- 
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/56CC82E9.8070601%40gmail.com.

.
