220 9282 <1908685.x2fBXFHVm8@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: add "implicit" keyword?
Date: Tue, 11 Feb 2014 10:11:48 -0800
Lines: 41
Approved: news@gmane.org
Message-ID: <1908685.x2fBXFHVm8@tjmaciei-mobl4>
References: <ldauqr$63v$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1392142375 31195 80.91.229.3 (11 Feb 2014 18:12:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 11 Feb 2014 18:12:55 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBLWQ5GLQKGQEQZKVQSA@isocpp.org Tue Feb 11 19:13:05 2014
Return-path: <std-proposals+bncBCB4TK757YBRBLWQ5GLQKGQEQZKVQSA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f199.google.com ([209.85.223.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBLWQ5GLQKGQEQZKVQSA@isocpp.org>)
	id 1WDHpQ-0007wK-CV
	for gclcip-std-proposals@m.gmane.org; Tue, 11 Feb 2014 19:13:04 +0100
Original-Received: by mail-ie0-f199.google.com with SMTP id lx4sf7842026iec.10
        for <gclcip-std-proposals@m.gmane.org>; Tue, 11 Feb 2014 10:13:03 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :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:content-transfer-encoding:content-type;
        bh=Vrpgy79TL22NKNIzPsUt5F34R+NuiUajEm4HTD/TqgM=;
        b=DIEalwiMukdnLPPSx1FabXkMmKT9x8GZLs4SVubDou0y86EXgga0V796mTO6KTqbl5
         v/JEm/5W0yr/3zNbOJOE1PKxZkoMnJv6jm1JbHxZPNg+yoKpOQiXDnnMkBdzlLZS6/uy
         2HGPvj8OBuKPQMOQzEIeVaKPxOonqUk0Ek6pDRHE8tk88MV+N3aiOoSAOL8W/jV+2GFN
         SHd6V3hqM0uCW5ni0Unq4tuWagH5zxRJsWlNuRyCsVJb/Wy8grQZdRqnAC4TMTT58dvn
         XvQ+s+VM1qiAolF99UBJGRRgAcB+xSFcFChVlBwa+t73gb58usrbOn7+l+QXm9Fxb1Wy
         TC8 
X-Gm-Message-State: ALoCoQnJnGWNlkFuWXe111jsh52uJsERPt1ggJbeTkr10S1fWm/U27FKntn3TDllWDYQnM4jMqNk
X-Received: by 10.43.103.136 with SMTP id di8mr620icc.14.1392142383499;
        Tue, 11 Feb 2014 10:13:03 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.85.133 with SMTP id n5ls2564315qgd.64.gmail; Tue, 11 Feb
 2014 10:13:02 -0800 (PST)
X-Received: by 10.236.27.49 with SMTP id d37mr2306980yha.128.1392142382082;
        Tue, 11 Feb 2014 10:13:02 -0800 (PST)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id 6si13027548qgy.186.2014.02.11.10.13.01
        for <std-proposals@isocpp.org>;
        Tue, 11 Feb 2014 10:13:01 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl4.localnet (unknown [134.134.139.76])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 5E44211A60E
	for <std-proposals@isocpp.org>; Tue, 11 Feb 2014 10:13:00 -0800 (PST)
User-Agent: KMail/4.11.5 (Linux/3.11.10-7-desktop; KDE/4.11.5; x86_64; ; )
In-Reply-To: <ldauqr$63v$1@ger.gmane.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mail=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: <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:9282
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9282>

Em seg 10 fev 2014, =E0s 11:30:32, Matthew Woehlke escreveu:
> Objective:
> ----------
> Create a new keyword "implicit", having the meaning 'not "explicit"'.=20
> That is, this keyword would annotate that a constructor or conversion=20
> operator is allowed to be called in a manner that would be denied by=20
> 'explicit'.
[snip]

I think it's a good idea and I support.

For example, in KDE we have a policy: every one-argument constructor must=
=20
either have the "explicit" keyword or must have "implicit" in a comment on =
the=20
same line[1]. Then we have an after-the-fact source code checker that verif=
ies=20
everything and produces warnings.

A keyword woud allow us to dump that part of the script and just enable a=
=20
compiler warning, or even a -Werror.

[1] the rule wasn't updated to deal with C++11 initialisation lists.
--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

--=20

---=20
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 e=
mail 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-proposa=
ls/.

.
