220 5141 <CAGsORuCU_-sD9YYLO9W76O5UuEui8+vfH1Xj4n4MRuHDU7Ujmg@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: constexpr data member
Date: Wed, 19 Jun 2013 19:00:51 -0400
Lines: 34
Approved: news@gmane.org
Message-ID: <CAGsORuCU_-sD9YYLO9W76O5UuEui8+vfH1Xj4n4MRuHDU7Ujmg@mail.gmail.com>
References: <CAGsORuDonz16fG51JaLgDCHptjpZAnuWM2AgNrBN_44hxUqjXA@mail.gmail.com>
	<300a19dd-8a82-4788-9802-45170480b30a@isocpp.org>
	<CAGsORuBWr7F6wpyUd1mBFDKGU7P9jKaPaq+wOYDpFL6QGH7Byw@mail.gmail.com>
	<63d90b03-5605-476d-b40b-7ebcee0d3354@isocpp.org>
	<CAGsORuD58nw+76_2_pp6GqpwGKhbVHJ40wnCZccrUXRjxB_qNQ@mail.gmail.com>
	<cf218cdb-bfda-46e7-bedb-23795ace1ae3@isocpp.org>
	<CAGsORuAMLbeFJZwrjmaMV6AF7rop==h8BJiGiBAtgxQxO7E++g@mail.gmail.com>
	<0df105c5-7019-4674-83ac-1b071964210b@isocpp.org>
	<CAGsORuCmGnrUg+hkXCWssHp5KPu1wS+GsO__DwoDi13Y1UTDfA@mail.gmail.com>
	<9a4c139d-b08f-4dab-b5a3-9ff9d3139061@isocpp.org>
	<CAGsORuDsfTaLrJh_eL7Ke3jho9=EzMsKZ944tEnyrwrCko8APQ@mail.gmail.com>
	<1ef2b6fd-21f7-4492-a778-03952dd1720d@isocpp.org>
	<CAGsORuDE7=iC38rYdtqTgj3m5-jmtKWOK__hE7tj6o6M4a9aKA@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 1371682851 28552 80.91.229.3 (19 Jun 2013 23:00:51 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 19 Jun 2013 23:00:51 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUILMGRQMARBI7QRCHAKGQERBIZ24Q@isocpp.org Thu Jun 20 01:00:53 2013
Return-path: <std-proposals+bncBCUILMGRQMARBI7QRCHAKGQERBIZ24Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBI7QRCHAKGQERBIZ24Q@isocpp.org>)
	id 1UpRMz-0006tv-NO
	for gclcip-std-proposals@m.gmane.org; Thu, 20 Jun 2013 01:00:53 +0200
Original-Received: by mail-wi0-f200.google.com with SMTP id k10sf1183694wiv.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 19 Jun 2013 16:00:53 -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=lehLYX6t9uRUeV52dvb3xH9ie4a4bFNgkMeVCNcvyCw=;
        b=gxRe4dcrvwyxei30mXJ8G3c2dwvNW3EAP5RndRb1kPfak7fnfxwoXs0Ku9KmbikFcT
         baLqVzEw647RpMQyaOSP8asj0o8P5TGINEpD8NA3mGLYT8OLcwOnAs/bM+oiE6tE/2zL
         KZdt1P9VFFhZuaSIU6g9Y+rg+OLFfqK/EVpSCFG/n60UvG9IvuJ3+J8TngRwRe5FXkcY
         UILa3xGYMqC3mrqpjDSwqtoFSKUblMBOf/MIOSNTQEMvSXvQ4SJLxK02zQAmbnIqAyG0
         BaUcWqI/ujRrrSUO5+Ahhlrgyx19wm5EeTE/ArV7S6VIZOOLUxzjMLb0HXNAzJME2F2L
         mm5g==
X-Received: by 10.112.55.67 with SMTP id q3mr2160753lbp.17.1371682852908;
        Wed, 19 Jun 2013 16:00:52 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.26.136 with SMTP id l8ls33413lag.66.gmail; Wed, 19 Jun
 2013 16:00:51 -0700 (PDT)
X-Received: by 10.152.4.163 with SMTP id l3mr2353768lal.60.1371682851462;
        Wed, 19 Jun 2013 16:00:51 -0700 (PDT)
Original-Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [2a00:1450:4010:c03::229])
        by mx.google.com with ESMTPS id bo6si10882880lbb.12.2013.06.19.16.00.51
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 19 Jun 2013 16:00:51 -0700 (PDT)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 2a00:1450:4010:c03::229 as permitted sender) client-ip=2a00:1450:4010:c03::229;
Original-Received: by mail-la0-f41.google.com with SMTP id fn20so5109404lab.0
        for <std-proposals@isocpp.org>; Wed, 19 Jun 2013 16:00:51 -0700 (PDT)
X-Received: by 10.112.12.137 with SMTP id y9mr4233094lbb.91.1371682851266;
 Wed, 19 Jun 2013 16:00:51 -0700 (PDT)
Original-Received: by 10.112.79.161 with HTTP; Wed, 19 Jun 2013 16:00:51 -0700 (PDT)
In-Reply-To: <CAGsORuDE7=iC38rYdtqTgj3m5-jmtKWOK__hE7tj6o6M4a9aKA@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 2a00:1450:4010:c03::229 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:5141
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5141>

On Wed, Jun 19, 2013 at 6:31 PM, Zhihao Yuan <lichray@gmail.com> wrote:
> Richard gives me a new thought: If we can use the per-object syntax
> `object.name` to access it, then it's no longer a static data member
> (but I want they are actually per-class).

Or, there is another option: constexpr data members are
only accessible within the class scope (including the member
function definition outside the syntactical area of the class
definition).  Thus, they are per-class, implemented as static
data member, but NOT accessible with the syntax

  Class::name

This should be what I initially want (namely, some constant
definition within the class scope).  I have to use private +
static + constexpr to achieve that.  But it LGTM if the
Class::name syntax is completely disabled.

--
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/.



.
