220 5155 <CAGsORuDreyHkR2-Ao7cnzJiamP4-ciNhs3Dn7R7xtt3zKLX5Gg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <lichray@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal: Calling Base class construct on
 inheritance declaration
Date: Wed, 19 Jun 2013 23:44:33 -0400
Lines: 33
Approved: news@gmane.org
Message-ID: <CAGsORuDreyHkR2-Ao7cnzJiamP4-ciNhs3Dn7R7xtt3zKLX5Gg@mail.gmail.com>
References: <99414030-2563-46a3-a47b-dc43099dc74d@isocpp.org>
	<CAOfiQqk_8tppyP-tg4YTV_mZOpEVuCrDQsZQqDEZ=NxHn1GQkw@mail.gmail.com>
	<CAGsORuB08wRHtyZZB-M1tCxbcOcaDB42piKakLu5i5TSExEseA@mail.gmail.com>
	<22276a15-fb98-4023-9258-449bc6f88010@isocpp.org>
	<CAOfiQqnDWd2CCu0PguVeuBZw4FMu39nwoubR8pZJ+QOSzLnfzQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1371699875 23562 80.91.229.3 (20 Jun 2013 03:44:35 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 20 Jun 2013 03:44:35 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUILMGRQMARBIXVRGHAKGQETQDNKMY@isocpp.org Thu Jun 20 05:44:36 2013
Return-path: <std-proposals+bncBCUILMGRQMARBIXVRGHAKGQETQDNKMY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vc0-f198.google.com ([209.85.220.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBIXVRGHAKGQETQDNKMY@isocpp.org>)
	id 1UpVnX-0007ey-EC
	for gclcip-std-proposals@m.gmane.org; Thu, 20 Jun 2013 05:44:35 +0200
Original-Received: by mail-vc0-f198.google.com with SMTP id hf12sf8093123vcb.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 19 Jun 2013 20:44:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:mime-version:in-reply-to:references:date:message-id
         :subject:from:to:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:x-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=eod4P/TTaeRXnOxkdqgfncpLF/XmVjTgYI+GXSmVvq0=;
        b=DFs7Ilo6sUqMASJc4StmerGmv3byd2URHj9Dk2/dRSKjrvxIKxHTVGojfQdCdG1mk7
         5kZDJ12nzkgNcskfv1jegZnOiWsGNkNnJcLi2KPea9OFh1L3NFEDWJlDP3H0nhKUXxOZ
         zIrdPfwOAeQtFVvAmvG2wVQ14pRZuAAq35SKrhUIpu5Sl1RXcv1US0hySRnlMNwfiKZT
         AWFoaf6IOmDg9oTK+2cjShkIeUSiQW2zKd6OwT08am5atlv3wp+WzMxe3oW0kPJqXxsc
         U8Ej/a6TDv1o8zFjTMAyESNl1qZwuJuQ/spGqPR2ViojfayFO5eeJl/8a6KHRHARgioQ
         eXrA==
X-Received: by 10.236.32.229 with SMTP id o65mr3301917yha.19.1371699874557;
        Wed, 19 Jun 2013 20:44:34 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.51.129 with SMTP id k1ls530165qeo.47.gmail; Wed, 19 Jun
 2013 20:44:33 -0700 (PDT)
X-Received: by 10.220.66.203 with SMTP id o11mr1764653vci.67.1371699873910;
        Wed, 19 Jun 2013 20:44:33 -0700 (PDT)
Original-Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178])
        by mx.google.com with ESMTPS id p8si7334374vdv.148.2013.06.19.20.44.33
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 19 Jun 2013 20:44:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178;
Original-Received: by mail-vc0-f178.google.com with SMTP id m17so4375270vca.23
        for <std-proposals@isocpp.org>; Wed, 19 Jun 2013 20:44:33 -0700 (PDT)
X-Received: by 10.220.112.16 with SMTP id u16mr1701172vcp.40.1371699873748;
 Wed, 19 Jun 2013 20:44:33 -0700 (PDT)
Original-Received: by 10.220.69.147 with HTTP; Wed, 19 Jun 2013 20:44:33 -0700 (PDT)
In-Reply-To: <CAOfiQqnDWd2CCu0PguVeuBZw4FMu39nwoubR8pZJ+QOSzLnfzQ@mail.gmail.com>
X-Original-Sender: lichray@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lichray@gmail.com designates 209.85.220.178 as permitted sender)
 smtp.mail=lichray@gmail.com;       dkim=pass header.i=@gmail.com
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:5155
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5155>

On Wed, Jun 19, 2013 at 11:31 PM, Richard Smith <richard@metafoo.co.uk> wrote:
>> struct A : B { /*default initializer for B base class*/ } { /*class body*/
>> };
>>
>> struct A : B { /*class body*/ };
>>
>> I don't think there is a real ambiguity.
>
> It does not seem reasonable to require a compiler to look ahead over
> an entire class body to detect the rare case where we actually have a
> default initializer.

Hmm, wait, it might be doable.  class body is consist of
statements, and initializer is consist of comma separated
expressions.  And a class declaration is not allowed to
have an inheritance list.  It should work.

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

-- 

--- 
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/.



.
