220 41167 <ddecfa6f-3179-efc6-4787-24708ae516bd@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Function Parameter of Struct Type -> Named Parameters
Date: Fri, 30 Nov 2018 14:01:36 -0500
Lines: 20
Approved: news@gmane.org
Message-ID: <ddecfa6f-3179-efc6-4787-24708ae516bd@gmail.com>
References: <CAB+4KHLe6zDPRreF2q0zQptUgrO0-_u8VrAOA7Du+_KHxhGUnw@mail.gmail.com>
 <20181129060523.GA21632@noemi.bahnhof.se>
 <CAB+4KHLNKgefS3mn+trH1_Yb1QBi-+8VvdHNos57g1a_8hJ6KQ@mail.gmail.com>
 <20181130020338.GA2787@noemi.bahnhof.se>
 <CAC+0CCPHC7beENi=C0mVcz-cv4tR1w0nejLGp9O8k16i9YC9iQ@mail.gmail.com>
 <CAHSYqdaoV0gxVVGYorLJdnq2OxH6MmjsW7c0_xZM5bkn+yz97A@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 1543604373 23103 195.159.176.226 (30 Nov 2018 18:59:33 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 30 Nov 2018 18:59:33 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
Cc: std-proposals@isocpp.org
To: Hyman Rosen <hyman.rosen@gmail.com>
Original-X-From: std-proposals+bncBC37LBFWUIFBBEUSQ3QAKGQEA6IDH7A@isocpp.org Fri Nov 30 19:59:29 2018
Return-path: <std-proposals+bncBC37LBFWUIFBBEUSQ3QAKGQEA6IDH7A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt1-f199.google.com ([209.85.160.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBEUSQ3QAKGQEA6IDH7A@isocpp.org>)
	id 1gSo0f-0005to-3P
	for gclcip-std-proposals@m.gmane.org; Fri, 30 Nov 2018 19:59:29 +0100
Original-Received: by mail-qt1-f199.google.com with SMTP id p24sf6363653qtl.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 30 Nov 2018 11:01:39 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1543604499; cv=pass;
        d=google.com; s=arc-20160816;
        b=KCH+NWGH1e/QDXFU3sBi4KTqX9i1ffePvW9aB3AIxoYumbctVteETKN2nkd2tPpHvq
         uwkrHhrXRREv34r+MHH6i+16DnZzWHpmS7ttIdGBpkwDsm2V3k3T3p9aPKzvVkK5s9a4
         FpWsGYbAnKSCJFdXnJH7QWuRJgvPvpxVEEemWEjRnpmauEpL5k/j8UrKKcEHdAfXt9pr
         2NvZC2Md6g1VgludEKtk1xKGVE9cw7UBntSVV3xlzqtWzzfdvkIe8UHmg1NWroPcMyr+
         FdXP/znbERNIq3dzf7gNQtNAaWHtfgkgaiRd1vxJAvBntezKhNF/SdFBmQy6FFkE6Bqt
         MU5A==
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:content-language:in-reply-to
         :mime-version:user-agent:date:message-id:openpgp:from:reply-to:cc
         :references:to:subject:dkim-signature;
        bh=1o/VUkiYCquUIA2VFakBTUj4GQhQOyOiTbxnQvuD05k=;
        b=0wlIxuZzSgrn+nmu/jT4e8u4sNCZne2kMnL0GWS5QF3cFN1ds1jZWVZ24iG3rvoAkH
         +kO61GBMFpKCdQ5RYZAUA0ISXNE+U78X8nciE8iOVH9LXQx8JXfslFefPzkfJtsJHg1W
         g30/i4z8QxsnNOU+4/pkxiTCGQspokygrj8YE/sQOLWRlhYFrKUo2ZhdMABrA2gVwoE+
         4jCwEldqj6M2WBAgwaZj+QYWWb1NGXZjeChCK3taBR8L4rtnSjdcEDs5in2riLzXAoHg
         kg6dkHrEps4xhIB/Dugm5gL4o4rWSKR4y4tT8y6/CsNm4jUSsnRi7+RveptGpOIb9hMT
         Ya8g==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b="KPM/18gH";
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=mwoehlke.floss@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=subject:to:references:cc:reply-to:from:openpgp:message-id:date
         :user-agent:mime-version:in-reply-to:content-language
         :x-original-sender:x-original-authentication-results:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=1o/VUkiYCquUIA2VFakBTUj4GQhQOyOiTbxnQvuD05k=;
        b=YuEIr0pjuQpv/rZs54S0MWC/7HDJPyBrTBtCTTOf6+B9SzPgRP7LPQ8MEn4b6ex7aA
         G97Db1HAblYPZuUn90hO0yItXFpBeeQ24dlN4y2YUhTPH6RGQ1ZVJUwONDwNdbkSf7Rm
         tkAai7D4sfDXHz4Ps3yq3ylj6y2rfGZ46h9UFBzc6dgLH+SrEkVn6tNUYlBSJRiJvb0K
         /T3VK+4Rw2hW5D//ujHcIHsp5T5cr9mvl9xrYICTv3Ppw0wfMgt/E8jWk+7kthJ5amYk
         8K+sDZDdZsQXAdTn/kqMJ3bbdf3uZ69HCPvx8LW0Hjk7ejJCActOelymREAIpJgbnPPc
         682A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:cc:reply-to:from:openpgp
         :message-id:date:user-agent:mime-version:in-reply-to
         :content-language:x-original-sender
         :x-original-authentication-results:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=1o/VUkiYCquUIA2VFakBTUj4GQhQOyOiTbxnQvuD05k=;
        b=oJqOdg6VW3Yj3IrwpdS6ZgFAhLN7nOmwmyQSGZQuFUa0dwyRsFWLtgt/e4vRmClnSb
         RVQbJT20dZfSx+Nl7FL+ifiDQwT8+q/tx7q2RlWA7VHd792y2liDrOqPH/khpYFO8AX6
         kwKNtASBDFHIiMxi1d/QhFNnMWtKrMexq/sDJGbKZ+iFC2bWnv0q/Ce7xL+NeRffas7T
         lQ/t6c5P0B7zycpl5xKLsaMG2Oz1mb0eon8jDTuPXtJ6hSArq1zJXYG4Nw5q+Y+DH4Pj
         tbA7gYDlPb2zJPm18igco5QyvulXwUzG3SmN6pjA2oaW2bUaR7ecJLeU/v 
X-Gm-Message-State: AA+aEWbAYckySAEgzkQjBTm4BdTbC5cqdBtBTt8cv+nTEwfCInApHw8R
	jbw07+M1SLIngm6/1JrdGAus2w==
X-Google-Smtp-Source: AFSGD/VZNjpQmbPF+pAa+45cSmRGuvzgGutX2MqPmcgOMLfzGbrqp/Lc7KlKkU2ks0eYFlIqclTMPA==
X-Received: by 2002:ac8:913:: with SMTP id t19mr4715547qth.23.1543604499097;
        Fri, 30 Nov 2018 11:01:39 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a37:36cf:: with SMTP id d198ls3034079qka.4.gmail; Fri, 30
 Nov 2018 11:01:38 -0800 (PST)
X-Received: by 2002:a37:a9cf:: with SMTP id s198mr5957395qke.274.1543604498079;
        Fri, 30 Nov 2018 11:01:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1543604498; cv=none;
        d=google.com; s=arc-20160816;
        b=Jyr0Ligoc2k3CTqY4KOkn4b1muvoxN+9FoCSd9ClbPYFznctfzQv7X8uAXNonN2rOO
         z8xEdTUprsJYwsDCwYZ7eVzJrZjL6vZzW9+kNNlrrWeGvpL5EBA09sKBFaZ+v44k7Ey4
         j5zT5gEuzd1IFa7yGt1GyAsetfO676D7g6kVVWhDqdAdZFfyQn0M7mC6X7QUzPh84UpM
         QJNihYHSRvUAO2c+7rmxRYpNDNRMXf3Uz3O4BVJDu+NJKaNl5VGKkczSTTlkOg9rJltY
         0VeOKBmjI6NW2c9dUtDKYvMpoP3vK9hZ3eAgI0jq8d8RF2IWmyMbQZX72LxzU66CuHIN
         3sfw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:content-language:in-reply-to:mime-version
         :user-agent:date:message-id:openpgp:from:reply-to:cc:references:to
         :subject:dkim-signature;
        bh=t9QdsUeOySiCYcQsC1e7x9XJoY5jcS3hVnihGWI90I0=;
        b=hAObWFxy4Q3ODYJYR8BN9UBVZ/cEh8rtsqzmj1fhax+Jtlki6mw4PLX5dHggzLPvj8
         bn/qU7qeGNFVOL5EBhPtJ2eSNOyK2hcf2QvmJ6TuI7Wh8+pgZ2dgDMmQTEyE8RRARIAa
         4pAC7Pe8Hiu5ptpHG6R3mXC2PuJjMeigiS9XgzD2XW7qanT/BSgr0TTNBrSC649yKVcJ
         RSPWUbitOaoLVNBy7f7928rDgu/rd6+/turFW3x2OkzaCF8NzUaFVmKSVA6zYlsM0uAi
         GON7+TBHCgUfXFzchfLWjmk4TG1+MCCnMMYwQCwmhYGx5a0rQf+CPrl2RT4KK50j1ox2
         h3NA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b="KPM/18gH";
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=mwoehlke.floss@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 n21sor6521961qtr.30.2018.11.30.11.01.38
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Fri, 30 Nov 2018 11:01:38 -0800 (PST)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:ac8:7353:: with SMTP id q19mr6496348qtp.265.1543604497705;
        Fri, 30 Nov 2018 11:01:37 -0800 (PST)
Original-Received: from gryphon.kitware.com (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id f189sm3466075qkb.4.2018.11.30.11.01.36
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 30 Nov 2018 11:01:36 -0800 (PST)
Openpgp: preference=signencrypt
In-Reply-To: <CAHSYqdaoV0gxVVGYorLJdnq2OxH6MmjsW7c0_xZM5bkn+yz97A@mail.gmail.com>
Content-Language: en-US
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b="KPM/18gH";       spf=pass
 (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=mwoehlke.floss@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:41167
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41167>

On 30/11/2018 11.05, Hyman Rosen wrote:
> Named arguments (in my preferred and correct Ada style) are handled by
> the compiler without any ABI or mangling changes needed.  You cannot
> overload based only on different parameter names.

Let's say you have this feature implemented in such manner. How do you
make this (not) work:

  int foo(int: a, int: b);
  std::invoke(foo, .a=5, .c=12); // should be an error

-- 
Matthew

-- 
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/ddecfa6f-3179-efc6-4787-24708ae516bd%40gmail.com.

.
