220 33784 <05214462-9ca7-a5c8-018a-4a05faf02f7c@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: properties?
Date: Thu, 10 Aug 2017 10:08:46 -0400
Lines: 35
Approved: news@gmane.org
Message-ID: <05214462-9ca7-a5c8-018a-4a05faf02f7c@gmail.com>
References: <6ed2bd55-5538-418f-8f1a-263a9958babd@isocpp.org>
 <10557c71-2b0f-6675-305e-1267eeda1ed6@gmail.com>
 <cd0988be-8dc0-43be-96b1-94ec6f8e5e91@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1502374148 5429 195.159.176.226 (10 Aug 2017 14:09:08 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 10 Aug 2017 14:09:08 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1
Cc: evan.teran@gmail.com
To: std-proposals@isocpp.org, Nicol Bolas <jmckesson@gmail.com>
Original-X-From: std-proposals+bncBC37LBFWUIFBB4GRWHGAKGQEODMXYEQ@isocpp.org Thu Aug 10 16:09:02 2017
Return-path: <std-proposals+bncBC37LBFWUIFBB4GRWHGAKGQEODMXYEQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f69.google.com ([74.125.83.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBB4GRWHGAKGQEODMXYEQ@isocpp.org>)
	id 1dfo8h-0000Fi-Dj
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Aug 2017 16:08:43 +0200
Original-Received: by mail-pg0-f69.google.com with SMTP id 83sf7635233pgb.14
        for <gclcip-std-proposals@m.gmane.org>; Thu, 10 Aug 2017 07:08:50 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502374129; cv=pass;
        d=google.com; s=arc-20160816;
        b=uRBM6SI6kSeZAqcPFHOy8N2hYSYCx/0Ppy/ZYFbkJUocvJz5oehZxsklrhfyvv84Yk
         g1lnsIy4KnyUrxnmPL53sfpMyEyQvd1DzRpLLnCAz6ZMBvNHYmM7Rm515FOt+KmlXOn8
         uBbCBz40amEzQ5ja8FVWAOA90svr/5hGhEuij6y8HIGnTfmM9BsXv6i/Tc+iyzRGgc6d
         VT70nLQGDQgRW8luFiZPFKXR+mzU042Yw4hzt3x49JdmtBjDAohqAHlY5C6PAOCGdxu5
         fHRriPEqij8kcHxLMWRmUuDqaTXwpPVVs2+VNEupZ8bQnrGtnKcMY4AbWdvcmMi4QzHO
         BasQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:content-language
         :in-reply-to:mime-version:user-agent:date:message-id:from:references
         :newsgroups:cc:to:subject:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=TxJtOC+fgII0OLBrzPpPPboLtYhV7vD2Amr53ukRCaU=;
        b=khheDEdpREScs7CkWyrSE8XFWM51nOOUH277I+MUhG69sMPHyb8fl2kEHis/feJ6Ak
         XnNpNGsrSsBdV223T+IUWmaY7RfBHIRh+n0DzSLFO7z6EgpHKnfdcFU6/AQXc/kbR4fk
         RjZoCAmLbOK+5q0IsHCrz6SM8TVlHSL3U1M0wbfIXsKzJM84cTxd7CZW6OU59uo9nL1q
         899awvEspSmzaafJIAbeHbrpsDGKt/YmDv4no+BvZZvPPDIzIxW7pdB1tGlXZ3zEVpTv
         2p8AB0Qhi8E4uUG6SR06pGsmKGAVUi9Ie/P1x1g2UP4eeQlLV+sC2v7Ss9ewZsE5qUfS
      
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=G/GOA8Rm;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::242 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:cc:newsgroups:references:from:message-id:date:user-agent
         :mime-version:in-reply-to:content-language:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=TxJtOC+fgII0OLBrzPpPPboLtYhV7vD2Amr53ukRCaU=;
        b=gSHIzqscI2jav1z7ylTyhebi0pSb53WJiGDeSzAx3i29mMzz8z1D86vswSt8re3ipH
         Dh0V8A70efGKKxvilsDDXV4HOjAtKGxn5/t4p2UmdU4hKqQhnKeL0V8LuPyMqQMKokPt
         S/hrUfdW/Oiye8buNYcNxOVN6PRt+cnX+ZlR5rCuSIr0mKfQmuZ5XExIiM0pSpM0475O
         IfQRrX6I3viFwEQWWwhQRJqORLBg/oXoIH5LJXDcKDpiiVmV8ym2+EiJNvawVwiWBmr0
         QRCqrVZAG48NOsUoraEL3/obxX51sRS3FE9h69PlOwp1o32E9jqMhsEE9fIseticulEM
         iEaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:cc:newsgroups:references:from
         :message-id:date:user-agent:mime-version:in-reply-to
         :content-language: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=TxJtOC+fgII0OLBrzPpPPboLtYhV7vD2Amr53ukRCaU=;
        b=GkkwtR/11xVfNn2twbmGCPz7oPQlizk6TMNegumd7WLu8DG4NcSVnDez1/qGcDJLsI
         ZiFqfVyvpsNq3L+3snapxFIdwIF3WzxzCwE0uiCCNwPU5T2kj0/KcA2oj9Vv/jgEl6pq
         wwflQDvgp+tPryk/rASVO/vjSggCFnHFU1sZG8M8V4ct7tTAw/iqzmiYPYLWYoscuYEq
         37iAArPMTBeWxK/P1lu5hAGxn/GwEgubzzX/ox1LEy+I3vmTqB3UvY7c/NpQw3c3ArUh
         0mG1qrZLgdy70O6pHftgsDhQbLGKNEBqE+FCMF0S11zDYshk50ad3G2 
X-Gm-Message-State: AHYfb5iLxGjG/OyL6rWlRxn3Qe6UMZqbK3yl2rErPcbslBiwLRLhvRmm
	zY8J48s/Nma4S8ld
X-Received: by 10.99.63.68 with SMTP id m65mr7314321pga.13.1502374129563;
        Thu, 10 Aug 2017 07:08:49 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.77.78 with SMTP id l75ls7915807itb.6.canary-gmail; Thu, 10
 Aug 2017 07:08:48 -0700 (PDT)
X-Received: by 10.200.47.193 with SMTP id m1mr16724748qta.331.1502374128265;
        Thu, 10 Aug 2017 07:08:48 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502374128; cv=none;
        d=google.com; s=arc-20160816;
        b=Da8Fd5tgP6wYiPCNKaaRMWd5DpYgNqE3DQDJddJfh+oOMGyZehN/0m8juV+G3TSZ2x
         LV5FwbhRFHnjWnYIjsgmBBjJNiS9l07RA65kYvl7I1I3lxIr69sw/vK7Lp9Vv/uzdzzT
         KBAxLQ/gNHUCYc+pb+lvRXInWup6E6fIakBEFNLyT3TsvcQIhx6XHC1cvKummg97DjGd
         FdgCt0772+4tle52007B3KJ0cqy30fP1drJr04jt7/BQrkz41bsfKP+Q/8eQ5Dbqmuj9
         QthNx+KtHBlIVFBAG02uOy4g0FSphMEDg4zhidNiotTGLAj8QHh5cDwkHiNNdy92fesO
         ftWQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:content-language:in-reply-to:mime-version
         :user-agent:date:message-id:from:references:newsgroups:cc:to:subject
         :dkim-signature:arc-authentication-results;
        bh=1bFsT25auykGicij1DGazaItvtyLS0r4muRk9f9S8BA=;
        b=A9BLUp/iLgqYqDR1ZlcbrmNi03qfi0lmkOgt/5bp81JLHvMz+iyXROTuakjOiO9AF+
         lxys0E0ki/OByW44F3z8MGzVi7b2qYo/9HRzU4euIAa6SaWcVmyQTFP/D6ddUaNdge4K
         qLIRqmsqKRzFiiSPG4NzH0p3zebZrfl7vBRgdtGB6bS3HeSamS5NOWPkEZBFi9ftW1Qc
         P7I3MJdQ8V2QuIVaqMXw80xNTeGBdMeeDA3kQb51Pn1SzE+ie3+ECe2r5V7RuqEgz5nQ
         /7O8LY49pmGKu02jSuMSNNKosNlQlpwbHijBA2NHuAQ4ROrmeSmU5hj3n3YrFf1JKlvd
         98cw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=G/GOA8Rm;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::242 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-qk0-x242.google.com (mail-qk0-x242.google.com. [2607:f8b0:400d:c09::242])
        by mx.google.com with ESMTPS id v2si2175345qtj.544.2017.08.10.07.08.48
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 10 Aug 2017 07:08:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::242 as permitted sender) client-ip=2607:f8b0:400d:c09::242;
Original-Received: by mail-qk0-x242.google.com with SMTP id d145so768276qkc.0
        for <std-proposals@isocpp.org>; Thu, 10 Aug 2017 07:08:48 -0700 (PDT)
X-Received: by 10.55.8.139 with SMTP id 133mr15269051qki.22.1502374128047;
        Thu, 10 Aug 2017 07:08:48 -0700 (PDT)
Original-Received: from gryphon.kitware.com (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id 55sm4394211qtm.51.2017.08.10.07.08.47
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 10 Aug 2017 07:08:47 -0700 (PDT)
Original-Newsgroups: gmane.comp.lang.c++.isocpp.proposals
In-Reply-To: <cd0988be-8dc0-43be-96b1-94ec6f8e5e91@isocpp.org>
Content-Language: en-US
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=G/GOA8Rm;       spf=pass
 (google.com: domain of mwoehlke.floss@gmail.com designates
 2607:f8b0:400d:c09::242 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:33784
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33784>

On 2017-08-09 16:20, Nicol Bolas wrote:
> On Wednesday, August 9, 2017 at 1:59:24 PM UTC-4, Matthew Woehlke wrote:
>> On 2017-08-09 13:32, Evan Teran wrote: 
> I poked around with the ideas for a while. The basic idea was to 
> provide 3 independently-useful features [...] stateless member
> subobjects [...] inner classes [...] and language-support for 
> CRTP-base class (so that you could write the implementation of the 
> inner class outside of the inner class itself, and thus reuse 
> boilerplate).>
> My biggest stumbling block was the latter. I realized that I was basically 
> creating "mixins," but though inheritance. The problem there is that the 
> derived class is incomplete until the template instantiation of the base 
> class, so the CRTP-base class can only access features of the derived class 
> within functions. That made doing simple things like iterator traits 
> impossible without some external class (like `iterator_traits`).
> 
> So if I wanted to do mixins without a bunch of arbitrary limitations, 
> they'd need to not just be some base class using template trickery, but a 
> true, first-class feature that was separate from template instantiation.

Ah. Of course, mixins are sufficiently wide-spread that figuring those
out is almost certainly worthwhile in its own right. (I've always
thought so, anyway.)

Maybe someone would be interested in taking up the torch on those?

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/05214462-9ca7-a5c8-018a-4a05faf02f7c%40gmail.com.

.
