220 36475 <3124075.L0jXXNC7oo@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: Treating local variables as rvalues in return statements
Date: Wed, 03 Jan 2018 13:35:24 -0200
Lines: 28
Approved: news@gmane.org
Message-ID: <3124075.L0jXXNC7oo@tjmaciei-mobl1>
References: <4ff5fe2d-0945-491f-9888-479b8e866ace@isocpp.org> <2503165.NFYEXWA1nm@tjmaciei-mobl1> <CAA7U3HO7eRNcHuzV38A0jtiZ-dbywnHTEP2Y6yz4oj5KHhCgrg@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 1514994245 25566 195.159.176.226 (3 Jan 2018 15:44:05 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 3 Jan 2018 15:44:05 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBLPVWPJAKGQEXCNS7LY@isocpp.org Wed Jan 03 16:44:01 2018
Return-path: <std-proposals+bncBCB4TK757YBRBLPVWPJAKGQEXCNS7LY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f198.google.com ([209.85.220.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBLPVWPJAKGQEXCNS7LY@isocpp.org>)
	id 1eWlCm-0005Zw-7f
	for gclcip-std-proposals@m.gmane.org; Wed, 03 Jan 2018 16:43:48 +0100
Original-Received: by mail-qk0-f198.google.com with SMTP id x197sf1011263qka.18
        for <gclcip-std-proposals@m.gmane.org>; Wed, 03 Jan 2018 07:45:51 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1514994351; cv=pass;
        d=google.com; s=arc-20160816;
        b=tYBpKFy82gfVyfmTa1l3BOlfwwzBxlAc+8S64LeSfJnCmbF6ah1JxUcUo46gAyu85K
         5Jz14cb95LNe+92qkf6cYQWH5pkRSJTMzon9AHg2UoHoaxOAQwrT1i5Vi2STHT5Tnkd7
         bioZ8Sylim32jvuk1g5D2fvtBm0peZDPKgLZ0rhJJ3kG6u93O0IHLmw9VyCxeDpiU/go
         R28/KRk8WSzQhj9kcUHqEva2shuU2mZduYpytspDKo9jusYjB6ryEZw4jPclmWCXcTWD
         oLgvbuaBjM7Ncb+Zlv1BogyrqABD0gdVoNvZXBlgSNoSC24l4vn921hcbkN5TqVGtfi7
         T2Qw==
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=nZ4iLft/e9Ie1ZrTe7+jSpZ+3GrFwMhFTMi7fxuuby4=;
        b=s5969z+9N+qYUNNqqBhrWz9ZHnNRr22MExh2kUK7NFlJYz9/ACqL/C9E5D+aM9Csbx
         pzuKbpG0Uuwvge7zxB/1unRsuh14o7UeqI4mf9Ru+xwUhtuRIuL7wuvw7F24ho+Gb0gm
         rhYEeuYzVmyv4mFOxA3SmWrLQit0acjEeRKher9VY7diEHmo/2ew5KtClimuyeEZZpIx
         kePCzKip6hpljrI/+8dYY8+myU0byU0YMlZnS1IvnQDOQ4TdCCFT3zNQaZKGaUcKj7Un
         mE3WwL9bHZeKMH6727qZxpt1RjoG/dQssoZIKUvX5PCNW/g230X2bc2by6It/GdcwHzm
         Jlsw==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 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=nZ4iLft/e9Ie1ZrTe7+jSpZ+3GrFwMhFTMi7fxuuby4=;
        b=yBVw9D5rGGtAZuho83/DyozabNuFh5Gk6NhjN/VcS7jWNm4dFy/8NA9E6MHtfE1xLg
         fbQMYkk6tXNRKpaSbqFJIheuQAET/Cta0UNOpSdETta5jsOZq7tnTLbVJJiOEBe9s5xS
         bSZaJot4aVWyrGpmxmzacL6kIq0ZilLqNZhTxQjhTc8pZVJIJH98EEsBZvfbbDUOr0Jq
         Pc3Tdt98XdBReyh6e+Ai7oMzSkdaUb81l+F3UGRQaEN5Z9j6j77p6pPfd1nmifsjWJxo
         5NWJmuMUShRaa97ZNkdqNM/2cvF0dDlF74//KWraWKXKQr1FCZ9ukk0IPAtP9LR7iX+e
         HHUw==
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=nZ4iLft/e9Ie1ZrTe7+jSpZ+3GrFwMhFTMi7fxuuby4=;
        b=aAQedz4cST9i9X5m1JX0O+3DXA9p7Y7k1dvr0gfz68Y9e7xMDd8NOdMWJcw57uuDsj
         VAV4obwVxDxGJVmqhWo3y6TLq7swLcWmyqC9iYxSdKZ8dv6FWaBy+d1ZRB3cnb+Xv7Gv
         Wjvy6G9yDydfcUQv/PpZYxtJxD+miGRJNNNc+AZ6qH1MEKEJMFHhOCTTVt66N02l9QkR
         aIbMiBD7R9kctjW/1455BywihdIuzJbfcFMKoETxrf6TBvN/6ck62Nhxh+rJh/sZYntW
         23n1RbjsSpUwElbugNlJsZimQJmnqLNw/yjWSOiEPVPKZJXUASQGT602ERMnOUYqpzbL
         ivbg==
X-Gm-Message-State: AKGB3mLxffkuE+oXhNZ969L7uBSqR0PtsyYQ9onrKG1uZbh1aSu1+Yab
	9j6m0YqWl98RhFkYXaJGHrhH8A==
X-Google-Smtp-Source: ACJfBov93WIRlFFlnK7/bBrlifyFcHNjuMzTaD7IPZRISVvMfxlaeA7159yaKLbYwAies3uGjLml7Q==
X-Received: by 10.200.57.91 with SMTP id t27mr1165164qtb.15.1514994351065;
        Wed, 03 Jan 2018 07:45:51 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.55.164.142 with SMTP id n136ls2655706qke.14.gmail; Wed, 03 Jan
 2018 07:45:49 -0800 (PST)
X-Received: by 10.200.54.93 with SMTP id n29mr2314423qtb.179.1514994349763;
        Wed, 03 Jan 2018 07:45:49 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1514994349; cv=none;
        d=google.com; s=arc-20160816;
        b=h60lErWiqHzUv7PE58/HLQltWl+3c6W/ByezFGeiys+HpQBTG3KGCvQVzFwjVwKT1X
         2s7R9wTqhEqSv2AIi7CoHMuHZnCUaMEw1gzalwTv3UgqHPwjbqXADqzxcPK7prUPdV0A
         gTU7rmlmxrmNN0W8OSautZ2evtzq+zsDPoH/CPcYSF18VOWTUoyKHugZBA5uAKjBw4ME
         gwVhBCW3inWkBFYLmO6X1gjGF9ND+Y06hheNzbiwbCi5UqiBYf71fHIdnuggx5xEYWQW
         fivg0oxYfrYcJLuZG5N9zkgvEOSdY+LxahxtoQQK0t7Gx0pP+4Ip0KBypiUlHA+TDZr9
         I60Q==
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=/h47zmH3m/2FAXJkxlDVFv58iYPXIcuyV12orx4T7B8=;
        b=e4BZfXkOn2/4OeK/iutPlg5p7PfnHrnqGwV4zVeu30bfiThhkHjOlrVPBsGBHxBQlk
         2Z24nmyx4qW2jwQjKrHWI0JBtYKnkhDamHjB/xezdSHGmxI+rpaQEze8C7+C+vYTjrda
         veEYO5hHeZr48TzmxyZFihdERkqUz+vR9Z7KdKhn0zXiO1HEho0fy1RBYh9KcptexcVQ
         bjOVofl9LIMbOFPeCRU9jqxYfv5saJTeEZblzO4nTzqwNAFn5+F61arIH0xxjggldbzd
         /PJhIveEFcl8gsieIWuixCbcFqKh/BvPMGjjdpBYAUrNYqHjbsVQ0j+wzH45a1/NupXG
         /MqA==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id v131si988685qkb.315.2018.01.03.07.45.49
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 03 Jan 2018 07:45:49 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [191.254.125.70])
	by smtp.macieira.info (Postfix) with ESMTPSA id AB444589D
	for <std-proposals@isocpp.org>; Wed,  3 Jan 2018 07:45:48 -0800 (PST)
In-Reply-To: <CAA7U3HO7eRNcHuzV38A0jtiZ-dbywnHTEP2Y6yz4oj5KHhCgrg@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 2001:19f0:5:2221::1:3 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-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:36475
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36475>

On Wednesday, 3 January 2018 11:51:33 -02 Olaf van der Spek wrote:
> 2018-01-03 14:50 GMT+01:00 Thiago Macieira <thiago@macieira.org>:
> >> Why?
> >> An idea isn't bad just because standardese isn't available (yet).
> > 
> > Because I have the suspicion that it can't exist at all. The idea is bad
> > if it can't be described meaningfully.
> 
> Fair enough.
> Escape analysis isn't a new thing though:
> https://en.wikipedia.org/wiki/Escape_analysis

Right, but there's a difference in using that for optimisations and using it 
for mandatory behaviour. Using escape analysis to determine if a given local, 
automatic variable could be modified by a given function call is one thing. 
Using it to determine whether to call a copy constructor versus a move 
constructor is an entirely different situation.

-- 
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/3124075.L0jXXNC7oo%40tjmaciei-mobl1.

.
