220 18202 <5947190.lVlccHFjdM@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Core Language feature: Multiple assignments
 from multiple return values via tuple
Date: Tue, 26 May 2015 11:33:26 -0700
Lines: 31
Approved: news@gmane.org
Message-ID: <5947190.lVlccHFjdM@tjmaciei-mobl4>
References: <69a59613-6504-466a-9878-786653d6087f@isocpp.org> <4498da2a-af3a-457d-9bf7-e8bb3721d6b9@isocpp.org>
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 1432665272 7551 80.91.229.3 (26 May 2015 18:34:32 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 26 May 2015 18:34:32 +0000 (UTC)
Cc: Nicol Bolas <jmckesson@gmail.com>
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBLXZSKVQKGQE67OC7XY@isocpp.org Tue May 26 20:34:25 2015
Return-path: <std-proposals+bncBCB4TK757YBRBLXZSKVQKGQE67OC7XY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-la0-f69.google.com ([209.85.215.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBLXZSKVQKGQE67OC7XY@isocpp.org>)
	id 1YxJgF-0001z7-VN
	for gclcip-std-proposals@m.gmane.org; Tue, 26 May 2015 20:34:24 +0200
Original-Received: by lagv1 with SMTP id v1sf30307561lag.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 26 May 2015 11:34:22 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-type: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=pGGO6eWLsasvzl8nGpCcK7bDLcnkjOZiSR3AJbZcD3o=;
        b=M8NATPESKdK33sUf84h4vW74tcNCrxnfIZDC7hBzFauLeeXhyaCMrwKXkOKcsi32UU
         04FSa3qpM+8GSHACgnG5eeLZ2rKDWDmCGL5DQu+GSTRO6akm6VO1WT1IYkjTKX2iXsCi
         HheyY3BpQl508/7YhZKiFJ/zz1I4ZhCfqi8nFM/8Ro83xWG9ip9PqnfK8pbTzqr2Haq/
         yTrAT5xn2yrD74Cp5T3ynzk4rf2a5zigEDk9kQdqU5hUuskP7tg+Z+PssDqLKwDyXOyY
         Qa2uD1hhYeDDlUkMiFzoJCuCC3zt5HZsBm4kbVlRJJjexlyU4pJmojkCDZgPxPDr9IVJ
         o0gA==
X-Gm-Message-State: ALoCoQmUEFZYVRnnWUtcHsypwpX+2FwOxmjps1671CEGRu4e9YdwPHgVkBInjYrrjSL6SxvmsjDM
X-Received: by 10.112.53.102 with SMTP id a6mr28555722lbp.16.1432665262794;
        Tue, 26 May 2015 11:34:22 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.97.132 with SMTP id ea4ls705485wib.38.canary; Tue, 26 May
 2015 11:34:21 -0700 (PDT)
X-Received: by 10.180.103.227 with SMTP id fz3mr19120359wib.45.1432665261777;
        Tue, 26 May 2015 11:34:21 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id q2si25226219wje.194.2015.05.26.11.34.21
        for <std-proposals@isocpp.org>;
        Tue, 26 May 2015 11:34:21 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl4.localnet (jfdmzpr02-ext.jf.intel.com [134.134.137.71])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 0655011A71C;
	Tue, 26 May 2015 11:34:21 -0700 (PDT)
User-Agent: KMail/4.14.6 (Linux/4.0.3-1-desktop; KDE/4.14.6; x86_64; ; )
In-Reply-To: <4498da2a-af3a-457d-9bf7-e8bb3721d6b9@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mail=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-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:18202
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18202>

On Tuesday 26 May 2015 11:10:11 Nicol Bolas wrote:
> Using the `[]` syntax noted here, you could have matching return and 
> capture:
> 
> [int,float,double] foo()
> {
>   return [5; 23.4f; 10447.023d];
> }

I think the matching return and capture is a very important point, since a 
lambda and this return are both basically anonymous structs.

	return [x = 5, y = 10] {}

If it were possible to extract the captured variables, we'd have half the job 
done.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
