220 33841 <7828291.YcltzT31Yz@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: string_view for fstream::open()
Date: Fri, 11 Aug 2017 12:20:51 -0700
Lines: 31
Approved: news@gmane.org
Message-ID: <7828291.YcltzT31Yz@tjmaciei-mobl1>
References: <cb7b55ab-7113-4d99-949b-8568627d0b7f@isocpp.org> <250415405.SNDfSfLC7e@tjmaciei-mobl1> <51add97a-3379-4b9e-9bd3-8972ed0e7636@isocpp.org>
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 1502479262 24004 195.159.176.226 (11 Aug 2017 19:21:02 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 11 Aug 2017 19:21:02 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBFUHXDGAKGQEI3SCG2I@isocpp.org Fri Aug 11 21:20:55 2017
Return-path: <std-proposals+bncBCB4TK757YBRBFUHXDGAKGQEI3SCG2I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f72.google.com ([209.85.215.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBFUHXDGAKGQEI3SCG2I@isocpp.org>)
	id 1dgFUH-0005c8-GT
	for gclcip-std-proposals@m.gmane.org; Fri, 11 Aug 2017 21:20:49 +0200
Original-Received: by mail-lf0-f72.google.com with SMTP id g25sf7632755lfh.13
        for <gclcip-std-proposals@m.gmane.org>; Fri, 11 Aug 2017 12:20:56 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502479256; cv=pass;
        d=google.com; s=arc-20160816;
        b=lqbnM3sepCBQ0jX6B1n+Tc4sUCdCtwyN30u0HkQIXeICmQQLQSO9YbozMRkPx9+PM8
         itx0AsNQV3ReKgvrHuy77KcnZ1BOusQMDmOD2JDGY3KohXhfYfwMY/sz+ocO/40wVGke
         WU6hT9KqclkaOiyiLR0m5vmB50K2oUBGnXQcUBIyl0AbqqiuwFUP0Gg9lHQ626HTnZS+
         R2IiHayhZG4gegSaKOMe6EJaqsReCuJgx8wvyrRtVt22Jr11YuJkFT9UxwfcZMA/eAJ0
         wHluJWMOM/lzN4xsJPF0aTZOIe22LB30GKN3bbYrbMUltG6M3C1SRVXVL/34M4INDr2K
         Sp4g==
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=sijtyEpryIqouI66TVeEy+lT+/3AEr/MyccOByHr3H4=;
        b=qUxeu+BgiW/Aj+4DPiF7GjRyXYoDRu3GtCVh4Rq062Cl5IoCb9fiXLcSGpmPK/e/PI
         dKs39bYr1ODs8O3e/VBgOM6tNV49PqcPZqKjJcJhY+C6jye0IbPdyipa3fX+dMnIAgyn
         ozY/GQt0fzKY+HfSX5MsnUIJdiZxvBPs5x1JZlFzEgLcfTsUXzwxT8pWrGXF9G91/3cx
         Nq/p4vk4TZmmKbLJX2FQ8sz9Fo9vuiYFB7EnUw20KI8GLIe51VNX2X2E0wjc/6hVleOl
         NTVQMrWgKeKAfiUogA2HO3Ga/YDmpi87Cko+ofb0EPKl/R0pt3rMQ8Kn09S+05CB0Blq
         tifQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 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=sijtyEpryIqouI66TVeEy+lT+/3AEr/MyccOByHr3H4=;
        b=rZUEnresSv+etFTI9ger38xg/kb8PYDjyTorYVf9PWrsiJIChK8fEm9Jeum4ilyMGs
         dzG3wllfneTYYAXpyjcjTsInxXxqErVJGMJRsKHc3QtLg8rf/j8pRwMOuqTrYr2L8U01
         KC9y6ozyolcnS7Ev5oF8cY9oScb563Hjg6kLFLxQfhfRejlVRN6+o2NpQlBoLJNVzLgA
         y3GJH6mV/rAnpBjHHEg8Mt4ubrlC5IY9jIzSfTUnDfcSUn/zCBWkslEHZlUUclJM+L0M
         DYcPXBK6+O+BSrg22p9i0ulwx9r7Izzskirl54hQD/9PWopBSr+MaofbtfslPdZC3TUk
         9kJQ==
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=sijtyEpryIqouI66TVeEy+lT+/3AEr/MyccOByHr3H4=;
        b=MoVnABEadeQn6r66RWIX6kowX40SoZ3P7jGMx09YaMBRrPZVr6HDSwXB2vLBZvHP1L
         bin7CKRtMbtU40J1vkThYwaufKO3O0Vg1SheIk+TwQW+fpjU0T+RyZQzGI3at4aYlvPp
         GaY0QQT+mDnDUmyZYiBHekCeBzNypFaVC9RPM4gfU0hlA5coXx9q09fsDbPoVehwKFyv
         jPh3Z1WJGWv9sUHayhmp7XHr+CxB7fiMfUx5NsEiHa0ah9PdzLolAnlWyJsZz4s1CiU2
         Fda9oss5j5wB3onAFFNPgaj+GXYTqK8q51gGCXRhk/cZYvQvRyNSv4yYg+mabiI9TJHq
         EX2A==
X-Gm-Message-State: AHYfb5hXhPsXDiaKIyOFApY11SLJwd7nihf7EGT7pAUNmWQSv1W2IQts
	mrlJBVpyBZyaWupG
X-Received: by 10.25.217.74 with SMTP id q71mr1718078lfg.27.1502479255933;
        Fri, 11 Aug 2017 12:20:55 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.211.210 with SMTP id k201ls29586wmg.25.gmail; Fri, 11 Aug
 2017 12:20:54 -0700 (PDT)
X-Received: by 10.223.132.228 with SMTP id 91mr10898338wrg.132.1502479254452;
        Fri, 11 Aug 2017 12:20:54 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502479254; cv=none;
        d=google.com; s=arc-20160816;
        b=pLyUaQyesWTfgwxx7pRW3dospGR4tvgab8o4Bgyirr/IF3Ii3MDqlC0v3uMZzGwhpC
         0aOHePTLsK3+VvvtBOS+QttwJgit++DfdOAvn9PUBMy2ragaJ5oaRzfPpAndxsX8/DgC
         hDUYJ8Gnkxgb++3DU65eWfCZpU9oB/RoQ9yLvLzMooFCz+LyrdCRImFI9XSR+mMjgFpT
         02LNi4Dc5EvvpHIpYRPCZANoGxc6JUiCnhoVg/m5XcXlGXVLVheesdt60aJrnGY2nMqW
         zQlCZV8Q03NS7PVNLu8m71ng+d8xX3c1FLBfyEXNUuzZN77h1JHkhIQbRkC1llyC1edU
         7O2g==
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=HAAS3UlsFcXSjrcK+nhqVdW2nN/M/gaFA+LEfsJOVDQ=;
        b=hZTc2qxZemgtwjirbI5AD3S0945qwVJncPB6fX8oT1y1tyOSmvt8ZdSr9UimywI/og
         ELRktHes7SbdGtQ+rggj144mpVg/rWKv7YbiiZUuoLsVcTAL4xGRCZjAzgMPGLZf3L6C
         5t/vDAzQNPbQ1zkXez+kxABUFJRS1jfLGMGJaCGr3QOAMlGgirkMQpU+rI4K0xPbhDNy
         eSfDOPH71Ppl3ID5sgKTxqPTj3RtLD+oZgEom8E98ZT1g2yFVvKgI2SwPp9WOwzCAgDw
         DPBTmWmnEBk2kNZ4z3ALVSxuWUC4SeN0KfMRkxw40xFs6PavG3H6pu/XGx1hFXAjv+2k
         BdCA==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id d27si1153611wrb.272.2017.08.11.12.20.54
        for <std-proposals@isocpp.org>;
        Fri, 11 Aug 2017 12:20:54 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl1.localnet (fmdmzpr04-ext.fm.intel.com [192.55.54.39])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 8DE9911B700
	for <std-proposals@isocpp.org>; Fri, 11 Aug 2017 12:20:53 -0700 (PDT)
In-Reply-To: <51add97a-3379-4b9e-9bd3-8972ed0e7636@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 78.47.120.188 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:33841
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33841>

On sexta-feira, 11 de agosto de 2017 12:09:18 PDT Nicol Bolas wrote:
> > int main(std::initializer_list<std::cstring_view>)
> > 
> > can be accomplished with a simple instruction inserted by the compiler at
> > the
> > beginning of main(),
> 
> How, exactly? `cstring_view` would not be *required* to be implemented as
> identical to `const char*`, after all. So there's no way to could guarantee
> that the `argv` array would be equivalent to that.

"can be accomplished" depends of course on the implementation details. If it 
is implemented as the simplest possibility (a simple const char*), then the 
main function can be accomplished with a single instruction added.

> Also, it's not exactly a motivational use case for the type.

Indeed. There's also the point that main takes "char **" for a reason: both 
the pointers and the arguments are modifiable. You can't do that with a view or 
std::initializer_list.

-- 
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/7828291.YcltzT31Yz%40tjmaciei-mobl1.

.
