220 19876 <CANu6V4UOxgZ9GV9f8DTbtW6BXrBPA7_2yUDRyhXv5BptvybHFA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "'Johannes Schaub' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: default arguments
Date: Tue, 18 Aug 2015 11:34:37 +0200
Lines: 112
Approved: news@gmane.org
Message-ID: <CANu6V4UOxgZ9GV9f8DTbtW6BXrBPA7_2yUDRyhXv5BptvybHFA@mail.gmail.com>
References: <ef9c7cbe-e8f1-4196-83bc-11a1c9b2798c@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e0118482c730407051d92a043
X-Trace: ger.gmane.org 1439890480 2294 80.91.229.3 (18 Aug 2015 09:34:40 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 18 Aug 2015 09:34:40 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCQPNCEZSQNBBLXYZOXAKGQEYTOKZUI@isocpp.org Tue Aug 18 11:34:40 2015
Return-path: <std-proposals+bncBCQPNCEZSQNBBLXYZOXAKGQEYTOKZUI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f198.google.com ([209.85.213.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCQPNCEZSQNBBLXYZOXAKGQEYTOKZUI@isocpp.org>)
	id 1ZRdHz-0007tS-SQ
	for gclcip-std-proposals@m.gmane.org; Tue, 18 Aug 2015 11:34:40 +0200
Original-Received: by igcse8 with SMTP id se8sf173221795igc.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 18 Aug 2015 02:34:38 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=KvxsuuS+JO1dHprZm1nMjsIxBCLNnULzzYEQiCuwlOc=;
        b=FyMrn2OY2JuHBpZCI1fhTBBa0wWxo1diphb7RSGhehpjxwcVCztBRm0SkrmJa9G4VO
         aCApxYoUHW4OkQ/g+6UhP1uUn6r+0lCrjYpAfWuthp4J1I94BOh4nhzv85GjtwUTHLUi
         JRPk/SWZBpb6Y68XMYQ1UdTK0cAUsoSSIFoSclLSWVbI5bOnNp4Le7xwSuUiS9Hnz572
         6uVTXDMmweWL2L3rxAS7X4jKbJ7tZbsI8C6eQzQDexeS4hO0aFi814M6hm7tA3ISKKTj
         cOpsbGL9+xonNhoDKRY5Drl21G6+g8D74ekyY2eFNmI8aI/RhL565sKm//J4QBUf5Hbf
         P4EQ==
X-Gm-Message-State: ALoCoQmfKd5/5/8WwDZoqOpFeZJoQg4C01KtQJ6g+aCfR8mhnwufctZOvwtNsgB6CGJ6HBiG4/OO
X-Received: by 10.182.209.41 with SMTP id mj9mr5344939obc.24.1439890478839;
        Tue, 18 Aug 2015 02:34:38 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.33.19 with SMTP id h19ls60637ioh.47.gmail; Tue, 18 Aug
 2015 02:34:38 -0700 (PDT)
X-Received: by 10.107.130.218 with SMTP id m87mr7194345ioi.55.1439890478196;
        Tue, 18 Aug 2015 02:34:38 -0700 (PDT)
Original-Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com. [2607:f8b0:4001:c05::230])
        by mx.google.com with ESMTPS id s12si9353601igr.61.2015.08.18.02.34.38
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 18 Aug 2015 02:34:38 -0700 (PDT)
Received-SPF: pass (google.com: domain of schaub.johannes@googlemail.com designates 2607:f8b0:4001:c05::230 as permitted sender) client-ip=2607:f8b0:4001:c05::230;
Original-Received: by igui7 with SMTP id i7so75402773igu.0
        for <std-proposals@isocpp.org>; Tue, 18 Aug 2015 02:34:38 -0700 (PDT)
X-Received: by 10.50.8.102 with SMTP id q6mr20212965iga.23.1439890477874; Tue,
 18 Aug 2015 02:34:37 -0700 (PDT)
Original-Received: by 10.79.81.199 with HTTP; Tue, 18 Aug 2015 02:34:37 -0700 (PDT)
Original-Received: by 10.79.81.199 with HTTP; Tue, 18 Aug 2015 02:34:37 -0700 (PDT)
In-Reply-To: <ef9c7cbe-e8f1-4196-83bc-11a1c9b2798c@isocpp.org>
X-Original-Sender: schaub.johannes@googlemail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of schaub.johannes@googlemail.com designates 2607:f8b0:4001:c05::230
 as permitted sender) smtp.mailfrom=schaub.johannes@googlemail.com;
       dkim=pass header.i=@googlemail.com;       dmarc=pass (p=QUARANTINE
 dis=NONE) header.from=googlemail.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: <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>
X-Original-From: Johannes Schaub <schaub.johannes@googlemail.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:19876
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19876>

--089e0118482c730407051d92a043
Content-Type: text/plain; charset=UTF-8

Am 15.08.2015 18:49 schrieb "Arthur Tchaikovsky" <atch.cpp@gmail.com>:
>
> Hi,
> Does anyone see helpfulness of such solution:
> Having fnc:
>
> void f(int a = 0, int b = 1, int c = 2, int d = 3);
>
> I think that it would be nice to be able to say whilst calling it and
requiring only some of those args to be non-default:
>
> f(default,2,default,4);
>
> Thoughts?
>

I would also wanna solve this with named arguments

  f(.b = 2, .d = 4)

And index based

  f([1] = 2, [3] = 4)

>
>
>
>
> --
>
> ---
> 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/.

-- 

--- 
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/.

--089e0118482c730407051d92a043
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr"><br>
Am 15.08.2015 18:49 schrieb &quot;Arthur Tchaikovsky&quot; &lt;<a href=3D"m=
ailto:atch.cpp@gmail.com">atch.cpp@gmail.com</a>&gt;:<br>
&gt;<br>
&gt; Hi, <br>
&gt; Does anyone see helpfulness of such solution:<br>
&gt; Having fnc:<br>
&gt;<br>
&gt; void f(int a =3D 0, int b =3D 1, int c =3D 2, int d =3D 3);<br>
&gt;<br>
&gt; I think that it would be nice to be able to say whilst calling it and =
requiring only some of those args to be non-default:<br>
&gt;<br>
&gt; f(default,2,default,4);<br>
&gt;<br>
&gt; Thoughts?<br>
&gt;</p>
<p dir=3D"ltr">I would also wanna solve this with named arguments</p>
<p dir=3D"ltr">=C2=A0 f(.b =3D 2, .d =3D 4)</p>
<p dir=3D"ltr">And index based</p>
<p dir=3D"ltr">=C2=A0 f([1] =3D 2, [3] =3D 4)</p>
<p dir=3D"ltr">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -- <br>
&gt;<br>
&gt; --- <br>
&gt; You received this message because you are subscribed to the Google Gro=
ups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
&gt; To unsubscribe from this group and stop receiving emails from it, send=
 an email to <a href=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org">std-=
proposals+unsubscribe@isocpp.org</a>.<br>
&gt; To post to this group, send email to <a href=3D"mailto:std-proposals@i=
socpp.org">std-proposals@isocpp.org</a>.<br>
&gt; Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/g=
roup/std-proposals/">http://groups.google.com/a/isocpp.org/group/std-propos=
als/</a>.<br>
</p>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--089e0118482c730407051d92a043--

.
