220 40100 <CAFk2RUb4WGJaG7-b=daPNhiDV9ZvvKwTH9ARqOoy9SmpdjFOrg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Named Parameters for C++
Date: Thu, 30 Aug 2018 01:24:41 +0300
Lines: 32
Approved: news@gmane.org
Message-ID: <CAFk2RUb4WGJaG7-b=daPNhiDV9ZvvKwTH9ARqOoy9SmpdjFOrg@mail.gmail.com>
References: <CAPuuy5eBx1ybcPjS6dNsk7n1_c2uhdRBS19qr=q5cj3cTURnLQ@mail.gmail.com>
 <CAC+0CCMrr0CFYhT-Uddxqffb9wYBPVftUfk_pAg1Jj2taWb=+A@mail.gmail.com>
 <CAHSYqdb8nsMAvZAXZbofixfwsWausy_sKgENgXJofyde80=86A@mail.gmail.com>
 <CAC+0CCPpyfJEj_kHyNFGG0Q17BfGPyAtL23PrujdmKe5y-3vJA@mail.gmail.com>
 <735cf8f8-41e8-49b3-9dec-1ff47e2a47f8@isocpp.org> <CAC+0CCMDr36nEe8d8E0G7PvnZmY_JxR+nN6aUS1xbuf4sY9ZWA@mail.gmail.com>
 <CAFk2RUZgSMctneV_cEw5aOP9TE-YzdsSR0xrBw_GnhbbtxoVFQ@mail.gmail.com>
 <CAC+0CCO-LgbLmaBCtPDoqKT9z4jRfYCAp6mWQ_tj6hRJfJVK6g@mail.gmail.com>
 <CAFk2RUYuG6BYJbf3LPtvmtrtCprDNRfh=pQTXGNq=p-3NvyPaQ@mail.gmail.com> <a2Gwcf5GNmDV8rmba8uCpfsJL3dB6d3bTTLNFTSneZkAkZ5jIuAPV3R6vB10OzVcxB4FjUSu5E7_zpbnj96J-qU-EdkEpBmSvnNnvd8D9vY=@miator.net>
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 1535581361 27867 195.159.176.226 (29 Aug 2018 22:22:41 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 29 Aug 2018 22:22:41 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBK52TTOAKGQENKHR3UI@isocpp.org Thu Aug 30 00:22:37 2018
Return-path: <std-proposals+bncBC5JHI7A7ALRBK52TTOAKGQENKHR3UI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f72.google.com ([209.85.218.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBK52TTOAKGQENKHR3UI@isocpp.org>)
	id 1fv8rC-00076D-A1
	for gclcip-std-proposals@m.gmane.org; Thu, 30 Aug 2018 00:22:34 +0200
Original-Received: by mail-oi0-f72.google.com with SMTP id q11-v6sf5671820oih.15
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 Aug 2018 15:24:44 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1535581484; cv=pass;
        d=google.com; s=arc-20160816;
        b=qLECpWUKKejsAj1mJhJVhgRTMdlMP+16spB4TYbJpzx3mvnL9dCYlVIfZLXmT1OfA1
         /KobaA3SY/jMw2Q5gYRr2FZoINODFyKLUtcqba1WYYYVk4oAM2gMxJ2Zs7gCoulgvcau
         dVG/mkm09qdvGiDTlYfochq8E+vTm4sZW0GVy0vbebRO6EWcWB9+e3jIKGZsV75DDy81
         p5Kpibw/ZBmwbTV9We8TqcGSR9qcLiufSQ/962lNqJgGduZ7DC36e6I1xzCBWj3rOs+Z
         uRnuzN79WiuVtgTSZKu3yUIcIt6EFGhXVQHuMZYU/nMdPupfv1cNQzsY3eAjshhgBdE9
         xV5g==
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:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=RCvBRtum6XeCYNRxSgP8vOrDUboy06S/Xd3oJgYeRfc=;
        b=C2citg55l5xm24LDjY5wn+gVTHr+IsErmAyYfhfLg4VJIIzIzvHai3/hNkxnrxbGRE
         YAlrETnqAi2B8dDnGMZoT4XtwsmrR6X2s/wD8QH4Jq6WX510HylTiSJTqxlYmETiyqx7
         BZOoxQgZi92P14Iwyy2lPDS/WEjEpKveYVvjbhM1brEkjDaZvHuJWVKlNZcaXEbQjVzH
         dnlytn7hz/tYxCF7Kz3SnzZbNprlVRG/cABEV18bzl+8OmaHrGorgj6iAqK5uC/AJXpH
         J8GpqriUdK4oX8gbp+6ktILzsr5+6RjTvPyCI/h8WYM7nbr25rFF24VpVVxj8vhoKe3O
         Vo+Q==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=jT4w60QV;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=RCvBRtum6XeCYNRxSgP8vOrDUboy06S/Xd3oJgYeRfc=;
        b=qb/HyK/uqzZzx5YgkW8VL5rynf7hCoFm53JbREqzqbS/aDxnYarxcaGssSK+PoZ5eF
         MZ17cT2ZhuApL9zlBDmFkgUq7XNhGWv9FLN6t+dN5UJ8q6tQR0ktSWQWeizZ1sPeGWoH
         59/LTIru/d/o68AKJPiyMFD16fOGFnkb2XsLHEGjtSI1Kz0DZR67tKfsR1jOl6XsbhVw
         4yMZpXskOXrDrph3GVLdwdTXEdC3TIXAYfeY3ql3m5Z4elGBVr1KV35QvfFotfo442qO
         APj1CMPRSqKKyAjYA03v4/zKYMgI4EScIQ4P5aKfzLyifIJ2Mv939inhy6OEoj6KQG+r
         iNvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject: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=RCvBRtum6XeCYNRxSgP8vOrDUboy06S/Xd3oJgYeRfc=;
        b=b6gAxgDV07QWcTNYNL86OGDaJXzW7WKpBCzObi1/1pJ7xNKnbkvFxKbaIQwTbIsAFx
         1N7+85OyrZ9l1FKkWKwQNlDUaIo/CWfFsUwr2vgGJukkApP2mR1M6PPz6TXPwCle2LKK
         +2VStFAwsK29i5Ndl0Ln6Q9XIDcFZXFJNfDFAmXlgfKpHoQKoOLTfV6WC88RnQsQZM0p
         g4gIsRw9KYrPWhousElpgg9a9+xQch/PyNhwq5eB77WMar7PkX19qJp9HSZUL2KFy25W
         bzVDS67QU08OHuliFydi1j7WdxXmniweMQYEG2yftN6/vxeiChm5HqnGWXfm1wtg2/xR
         ZtDQ==
X-Gm-Message-State: APzg51DPDtE5cr0ZaX0WFmBvSPElfR0EuCP8rJMeRTdTQjpu92b+SI7p
	IRvB39dr6FNlax+1PREikmBIRA==
X-Google-Smtp-Source: ANB0Vdb5g2sHKWjFZbz8ZCbOK2mAcBVz/Nf+P3eBD1oUhNJ380GRywmjdg0chRs6itii0LfQJHSRZA==
X-Received: by 2002:aca:b341:: with SMTP id c62-v6mr7680377oif.18.1535581484294;
        Wed, 29 Aug 2018 15:24:44 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:aca:c357:: with SMTP id t84-v6ls5624978oif.11.gmail; Wed, 29
 Aug 2018 15:24:43 -0700 (PDT)
X-Received: by 2002:aca:6ac8:: with SMTP id f191-v6mr31261oic.223.1535581483231;
        Wed, 29 Aug 2018 15:24:43 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1535581483; cv=none;
        d=google.com; s=arc-20160816;
        b=MdHrMD3Qx/RjJ5v1JCJ3Es/1T1wGbBqIZaFUhkxRMuaZiX3fCoPFM4bkLGqZvESfIJ
         XgUaF+pBO0sQ/EQci3V+ab6lQgwMGuFScHCvzWOv5MO41nIlvCTaxDE/fm+M5NDrWpQa
         yO0XD5hbH6fsdxYaE0ov/Yt/F9s/4HWLdeV0DMYZRcq1flYOrI8sQyRrrP8zuLvD+4gp
         e1VfA7uBDsZssyy8pG/eDOwSE5L1bVanggKYgYkmTkj14xdkuirzuI/tpRn61fUgDvIi
         99b1YqMwN+FN2E0T6VpplcU385VvZlnhz8bAwx6l1jhO41G0rDIQo4pGKtLtOtupEZRY
         eynA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=1fQ5KDqsWrUp9Bw8xqs6uHAHkKkLSJ/ntLH5KogRk4c=;
        b=vMR/kEk2NuxEpxC9RV+WFKFB+louBB2+H/s5yg+VGHtirYDTlxfaO+n/pq1y3rWzF2
         NxSc4DhFxqF+a9j1lDTovw4blHFsWsF6+60sWUJg5Nt/M75yxsZVcT+0AB0AhfM7Tlpq
         m9mMksCYg0ctyfN4ECsuFEg+4kGrJ4fb6SHeLpY1yOfSsoj2/rqnAxO69or3EsFl5Sja
         CnHbOE+s7A/SEdorfaLVpI20n++MXyEoUDy6sHCJnZ5GK9NGt5ytVL8wLHEN2AwSHx0W
         Cgv2P62oOZResQ/Obd0N1G0vX8Ow1Grzk8MTPW25bglhhyQVWI1Uoi1QPSutLdFDbmF6
         v2AA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=jT4w60QV;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id s2-v6sor3932533ois.37.2018.08.29.15.24.43
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 29 Aug 2018 15:24:43 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:aca:e0c2:: with SMTP id x185-v6mr65436oig.220.1535581482640;
 Wed, 29 Aug 2018 15:24:42 -0700 (PDT)
Original-Received: by 2002:a9d:176:0:0:0:0:0 with HTTP; Wed, 29 Aug 2018 15:24:41 -0700 (PDT)
In-Reply-To: <a2Gwcf5GNmDV8rmba8uCpfsJL3dB6d3bTTLNFTSneZkAkZ5jIuAPV3R6vB10OzVcxB4FjUSu5E7_zpbnj96J-qU-EdkEpBmSvnNnvd8D9vY=@miator.net>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=jT4w60QV;       spf=pass
 (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41
 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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:40100
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40100>

On 30 August 2018 at 00:43, Zhihao Yuan <zy@miator.net> wrote:
>> From: Ville Voutilainen <ville.voutilainen@gmail.com>
>> Sent: Wednesday, August 29, 2018 3:42 PM
>>
>> defining the order of evaluation
>> seems perfectly palatable to me, because that's what we do for
>> ctor-initializers, and I don't suppose
>> it's all that hard implementation-wise either.
>
> The authors had extensive discussions on this topic
> and copying what ctor-initializers did was certainly
> considered, until we realized that the ctor-initializers
> and the data members are both controlled by the class
> authors, while only the data members are controlled by
> the aggregate author since the uses of the designated
> initializers are controlled by the aggregate users.  This
> difference can cause some code to legitimately and
> silently fails at runtime if the aggregate changes the
> member orders, making a library less sustainable.

Ah, heh, there's indeed a UB component in it, because we can't
statically guarantee
that the members and their initializers wouldn't end up dependent. And
we get into
that UB-land even with trivial types.

-- 
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/CAFk2RUb4WGJaG7-b%3DdaPNhiDV9ZvvKwTH9ARqOoy9SmpdjFOrg%40mail.gmail.com.

.
