220 41475 <2410729.WPaXvBSSja@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Allow array as function return value
Date: Tue, 19 Feb 2019 19:34:29 -0800
Approved: news@gmane.org
Message-ID: <2410729.WPaXvBSSja@tjmaciei-mobl1>
References: <e1c07ac6-73d0-40c8-98a0-60a5c8a6c575@isocpp.org> <f870e6c5-4cb2-47f8-d963-363e68626841@gmail.com> <65d69c2c-3fa1-40a5-8120-53bfd345ac90@isocpp.org>
Reply-To: std-proposals@isocpp.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="244685"; mail-complaints-to="usenet@blaine.gmane.org"
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBSMVWPRQKGQEEVMHOJA@isocpp.org Wed Feb 20 04:34:36 2019
Return-path: <std-proposals+bncBCB4TK757YBRBSMVWPRQKGQEEVMHOJA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk1-f199.google.com ([209.85.222.199])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.89)
	(envelope-from <std-proposals+bncBCB4TK757YBRBSMVWPRQKGQEEVMHOJA@isocpp.org>)
	id 1gwIea-0011UZ-4M
	for gclcip-std-proposals@m.gmane.org; Wed, 20 Feb 2019 04:34:36 +0100
Original-Received: by mail-qk1-f199.google.com with SMTP id z198sf1451040qkb.15
        for <gclcip-std-proposals@m.gmane.org>; Tue, 19 Feb 2019 19:34:35 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1550633674; cv=pass;
        d=google.com; s=arc-20160816;
        b=al+a4uVHb3h36HUJmGowkvzjDWM+vJto/sWXMvX1lolqZ6ntmJerXSLqST5fvWPtmt
         UTJDbA4r8G0wHaCo3TAxFK4ZvKf3BSyXTaPHX5KgYT7M2Bd+u3Ho9TekHwT/Wu+Zu7s2
         keiXkHYHuxyvlBME5/EPCbbelglSsjXjcCfHW62Gibwiz7QartPzzf3UhVCWiqHzzF4b
         2fHZMUGwyfroI57b+qadYBniyPiPB9AmpZ5JTmaUKIdCIg+MtvjanSdIibH2hx9tjcwI
         zufmP78GoMlEXAQsdUqCQLfAJ7iG6k7oCET7hKSKrb9mbZxb9vJVcIFTOzfl//OuLTfN
         OQ/A==
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:dkim-signature;
        bh=b2UqnlXPvRSRPAFHKTJhoZoeijoLm6dF0YwYOWRaJOg=;
        b=WlIwXZ/O0cqRRDqgRoE83tvRBxp7H44rXNLjyi/bEjmIbJQdfnD0PUw7A9YXnRKu3i
         GqSj4G3osCbna3ePelF4NmN1IugKH7FFmnr9JhX9nzmzR0X113KhuypFURp2n1LoIGIl
         iH9VGYoNUGTXRKKIO049jGXHYok0tzBEhmXt6LbVFLWJdGVrW7at9p7r/+KmHsBqA1MQ
         XX7BNC0+y9r3HI4/WnXmQpJM4xIvr8pI7kXtBl9PKNJI4FeR2tjIJdwG/XmxbfUuuqvN
         TEdfUtwiZiZq9RM/gD64c0/vrUSrAkwMX9vs5aV9XSlBV6UzJFvM/fWJgvO/xSskJyQU
         ZZew==
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=b2UqnlXPvRSRPAFHKTJhoZoeijoLm6dF0YwYOWRaJOg=;
        b=RqFb0XcBWUWby9OLZzZo4uEENLfxG6pcfdlIZa0kTVlDNhNQ7K/9Yc02eVI9n+txz5
         ceyHZ9w/k84lK1JHFTRDtjCCdp6FDnKDhUa9e0rSZmR+AgQoby1d+1HSxo3tzWhsYeFo
         64p6+6jZWBh8q/SIdtiJaSDc9lFGHtnUI3Yo3j84VXrC2hzA3WCC2JmiCA1BKO43F2g5
         nqBYs+6RV52WuRLaHGSKBTxus6ksJdQm2inmU0KS/4B3QLEU3bDEIbzqvBRG7EIDm2ba
         aBInUZliGUJzg2zmx9V1/VyBazdnNytAEKUslIDJ9jXICXErBiR3RlJlgqcgTwFnXodG
         2MQQ==
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=b2UqnlXPvRSRPAFHKTJhoZoeijoLm6dF0YwYOWRaJOg=;
        b=cvASH6mvFLZoAf3slpoInfnpSZZJdmp0V6Beui7o6CjDFJMv03CJmfhxv8hD71P6Ga
         39cDtKcvByoFRg7IUxMU5PgEJ4e3BrV685ICObyT7b5lnYub+5uNHAf/mPt10fV2DmAl
         hlinawLJd1AJXFuiTuh4L8mQTd4WQIc+iX6CFd6qhfV+tSfRqP/ZM4wUWf2EQM9WHj7M
         LCsa8TaKLvRxp8iU+gkPDcfRuseqMEOncnL3WOr2gPbhbgdoRfCZnLGjU/z/TJDnNUuU
         3YMCXyyiBYHi8y0jramI/2jf+Bcfakak1/JxBEFkXcXLey/7yXUxfBC1D72QQ68eQjyz
         9BWg==
X-Gm-Message-State: AHQUAubeXETGHmTXLPeQjgQCo1iv32aL8mPKI0WuZOCLCAtXXDhHLuoq
	iBzZo2FadU6mXWlZ2Grg2VScjQ==
X-Google-Smtp-Source: AHgI3IYXHP2wDltjvPFUbr101O5ZmMVsv3zBQaI7S2Qyc5D1RlgJUcy9ca0sjl2s/BO80pP3cV491Q==
X-Received: by 2002:a37:d654:: with SMTP id t81mr18678210qki.4.1550633674589;
        Tue, 19 Feb 2019 19:34:34 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a0c:92c7:: with SMTP id c7ls9063578qvc.7.gmail; Tue, 19 Feb
 2019 19:34:33 -0800 (PST)
X-Received: by 2002:a0c:fcc5:: with SMTP id i5mr10152859qvq.39.1550633672918;
        Tue, 19 Feb 2019 19:34:32 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1550633672; cv=none;
        d=google.com; s=arc-20160816;
        b=mq2GG0S1cobd5qr6rYHjlwILSDEL6LRpLZWJHmZrALt9j8YZ7lR9E34HVe06vwAg3B
         yWoTzkLUJj8SgjNXVI96WQYbElwdDjG8ncYebQeOluBO0wo+BUBQBYgI7wGodJgtSMfb
         z616+pEQtVAGHDJg47GWFfl1aMO/X/Jzbr4PIAAVP2BSdBhtX2pKicTT7rC64/5LXaWn
         P87yHZTggnmqDMSfWU9/4VCVjgES56QLgmGyQmEMGGihR3oxVytLs/LUtojWynh/DcAG
         ZGg8XdI4UwVoCvfdUsrFs+oe/JLws1kx0DYBs05a0QkE8ZvEC3iH9H9p5T3wHPaLkSBv
         E2Qw==
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;
        bh=t6JYbEfms2fzehKs2qm9oFOZI6rSq87rFPL8JYOcKkQ=;
        b=kN+xyeKWU+TU5SZqpbYcl+/pv5/fQc3HiNaBr2lWunmSDbm7j62Fjvs2rp/yV7csMu
         WTZU3OG3VXDED7EibiXB+FwV4B1KWWWiSe0MwgwYgUI6nsqcC0w5sReBytWtbTImqMxk
         x5dHmUO0pe6K0wDQL+GWfFM1+qjx2AHB0jwUZ1uGmBmN2FB7M7BbwbWdbsFtAESPdE24
         lNp2Q1Xfl3HU+t4UQU9Xn8TcLqIPW4K/qMPCctTo4y8dumk0Hg/mkDZEcyOW72JHR8l5
         ZClx4KxmiaAJQ7RffewbVCnpu3ckynmyPNpFaBCxzrvsNAfraiW91/mWOYelnUDFVTL3
         +AmA==
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 o7si2383782qvf.0.2019.02.19.19.34.32
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 19 Feb 2019 19:34:32 -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 [IPv6:2601:1c0:4500:d000:5d06:ed76:5962:6404])
	by smtp.macieira.info (Postfix) with ESMTPSA id 25D32243E1
	for <std-proposals@isocpp.org>; Tue, 19 Feb 2019 19:34:31 -0800 (PST)
In-Reply-To: <65d69c2c-3fa1-40a5-8120-53bfd345ac90@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 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-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:41475
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41475>

On Tuesday, 19 February 2019 07:52:40 PST will wray wrote:
> > The fact that array return is now technically feasible shows how far C++
> 
> language
> specification has risen above its C roots.
> What was impossible for forty years is now possible.

C++ will not diverge from C here, since that would be a behaviour difference. 
Currently returning arrays is a compiler error in both languages, so it's 
possible for C++ to define the behaviour, but only if C decides forever to use 
the same behaviour or keep it a compilation error.

Conclusion: you must convince WG14 first, or get their word that they will not 
define this behaviour.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products



-- 
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/2410729.WPaXvBSSja%40tjmaciei-mobl1.

.
