220 9275 <lddl1v$6qs$2@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mw_triad@users.sourceforge.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: add "implicit" keyword?
Date: Tue, 11 Feb 2014 12:02:04 -0500
Lines: 41
Approved: news@gmane.org
Message-ID: <lddl1v$6qs$2@ger.gmane.org>
References: <ldauqr$63v$1@ger.gmane.org> <20140211065430.GA4771@faust.lysator.liu.se>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: ger.gmane.org 1392138299 11027 80.91.229.3 (11 Feb 2014 17:04:59 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 11 Feb 2014 17:04:59 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCO5FYHBU4ERBQNQ5GLQKGQE7LFQ47Y@isocpp.org Tue Feb 11 18:05:06 2014
Return-path: <std-proposals+bncBCO5FYHBU4ERBQNQ5GLQKGQE7LFQ47Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-fa0-f69.google.com ([209.85.161.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCO5FYHBU4ERBQNQ5GLQKGQE7LFQ47Y@isocpp.org>)
	id 1WDGle-0001CM-Ep
	for gclcip-std-proposals@m.gmane.org; Tue, 11 Feb 2014 18:05:06 +0100
Original-Received: by mail-fa0-f69.google.com with SMTP id a10sf14319309fad.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 11 Feb 2014 09:05:06 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent:in-reply-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:content-type;
        bh=/r+uYT1xivB0Ww5/DMwY6KuJI6BpkgM49wYfS0fiVCI=;
        b=DY0oJXZtjUopUnDoeAH5em1KS97FAQEyAEEzlSRSR1GeUNEndmryhaIsoizV6RECXZ
         waWMMVU+5pshzbUmCCTddPVlAGnKi461LzM1OUOyQJKkaBrpWDVh6kXxG+/SwZvVV+ap
         brXYRtsEUF3iS5gO84n1tRIKoxWO+KVNcvA6VD5yiHB0jtTjgFYDmr3hn0piWz2njukm
         ZEQ7Zueq7xXvwlcvMeooK0PdeOqWOkQ5lYM9PPRdqrsMPG4XEy3yIGkotdaL2VJ58nNJ
         3WD0GRhK86p74/GVPp+tmq+FOf21fKCRX5shZCdswJFdhFvR8bMuX9t5W199DqrscYzL
         P54A==
X-Gm-Message-State: ALoCoQn18U23+H1uTpPl9k+8S9Hqk6I7bjLXXAPqz57bIBBtfsj5yrkl0p0TJTxE+2yE8eOhcpNC
X-Received: by 10.152.180.35 with SMTP id dl3mr332247lac.8.1392138305795;
        Tue, 11 Feb 2014 09:05:05 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.23.135 with SMTP id m7ls380431laf.19.gmail; Tue, 11 Feb
 2014 09:05:05 -0800 (PST)
X-Received: by 10.152.10.70 with SMTP id g6mr943980lab.65.1392138305294;
        Tue, 11 Feb 2014 09:05:05 -0800 (PST)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id n3si10369870lae.124.2014.02.11.09.05.05
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Tue, 11 Feb 2014 09:05:05 -0800 (PST)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1WDGlb-0001BB-VZ
	for std-proposals@isocpp.org; Tue, 11 Feb 2014 18:05:03 +0100
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 11 Feb 2014 18:05:03 +0100
Original-Received: from mw_triad by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 11 Feb 2014 18:05:03 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 32
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To: <20140211065430.GA4771@faust.lysator.liu.se>
X-Original-Sender: mw_triad@users.sourceforge.net
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mail=gclcip-std-proposals@m.gmane.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: <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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:9275
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9275>

On 2014-02-11 01:54, Magnus Fromreide wrote:
> On Mon, Feb 10, 2014 at 11:30:32AM -0500, Matthew Woehlke wrote:
>> Objective:
>> ----------
>> Create a new keyword "implicit", having the meaning 'not
>> "explicit"'. That is, this keyword would annotate that a constructor
>> or conversion operator is allowed to be called in a manner that
>> would be denied by 'explicit'.
>
> I would expect a constructor marked as 'implicit' to be disallowed
> in explicit situations, so
>
> struct foo {
> 	implicit foo(int) { }
> };
>
> foo f = 1;	// Valid
> foo g(1);	// Invalid
>
> but I admit to not seeing much value in it.

Yes, that seems like it would be very confusing, besides that it is a 
new behavior (which my proposal wouldn't be).

> As for the bikeshed, both 'not' and 'explicit' are already keywords, so why
> not spell it 'not explicit'?

I could (with a '#define implicit not explicit', probably :-) ) live 
with that.

-- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
