220 38062 <pd2ivq$saf$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Phil Bouchard <philippeb8@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Fornux C++ Superset - Forward Declarations of
 Nested Structures
Date: Thu, 10 May 2018 19:03:25 -0400
Lines: 47
Approved: news@gmane.org
Message-ID: <pd2ivq$saf$1@blaine.gmane.org>
References: <cab4cada-1abe-48b2-9a4b-d6c9f994b805@isocpp.org>
 <CAOfiQqnoN-_KQ-AOTsAMCMnJK_nge1c59K0xOFy+u0jQEtFnOw@mail.gmail.com>
 <34fa23ed-1fab-44d5-92ab-217067b68225@isocpp.org>
 <75fb8736-b92a-480f-9a36-310b3e03b131@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"; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1525993289 30012 195.159.176.226 (10 May 2018 23:01:29 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 10 May 2018 23:01:29 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.7.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCAYTFXFZMBBBR472PLQKGQEMCGOSRI@isocpp.org Fri May 11 01:01:25 2018
Return-path: <std-proposals+bncBCAYTFXFZMBBBR472PLQKGQEMCGOSRI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCAYTFXFZMBBBR472PLQKGQEMCGOSRI@isocpp.org>)
	id 1fGuYv-0007iT-1S
	for gclcip-std-proposals@m.gmane.org; Fri, 11 May 2018 01:01:25 +0200
Original-Received: by mail-lf0-f69.google.com with SMTP id l14-v6sf1236503lfc.16
        for <gclcip-std-proposals@m.gmane.org>; Thu, 10 May 2018 16:03:36 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1525993416; cv=pass;
        d=google.com; s=arc-20160816;
        b=tLUn8SP74IeNEcjIz5UF1gpETA4OLsF8c3w8TYHpiCrLytQCnwtiVYK+SeOy8uzLfO
         2Cx+FZc6Bs/xLmwT6weXSxaXi8SN8/mDNsgspH2kv4oaAHTjctSFzYTy2lY5Lcfd36qX
         phTyq/8K/WJ194LXDP7teJ61Gqw5lCe4oikCT572YD1QJ/CGvPnB2UmP392FS/lyNxdl
         QYOvis9cFfFgUPhwvtVAhVYkQYQa1y6cQlsFxcDupa1LlZIpm33rq/uOeqGC9URcDnTK
         CrrJq3bJ6YbSY7rwEewwz+CzKxI2IzGQdtnrF1MRDpLd8Uf3Ara+6+LIJLlNBQvO1nVF
         xCbg==
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:user-agent:content-transfer-encoding:mime-version
         :references:message-id:lines:date:subject:from:to
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=d7kNPkhBDrRbA2fVdj0pDRN+NPm7VcK52DDhgQbt5wA=;
        b=v/D9uw8/h5RbNYgKohV143a6bDa1e2V4ga4jcSUInjFm9AMEPVaKiMhLKru7eUcKvl
         ipWTP6Nqflv4qd0P73ZgfPHEAWiwNFpQdsHIDvSGKt9x3jyCyvmUu6hAOalQlAuUzUiU
         4e4xIDMAI1a1knnTE9ZHQelbOEZVZ2m6Yd4/GKaQiVJKYYTA4bn8jN1oDmabzo/32pFT
         LWQXyLSThJnPDVjSrfRnflIVnqNAuMgIJdW8vjXzrTmVRKiDbjNxSQDb6hRO/6LGBPQb
         PbnLHpGr+1PjFmm9YBDSCadOZCXmZrZqVByVKu8a3Qc8yl 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE sp=QUARANTINE 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=to:from:subject:date:lines:message-id:references:mime-version
         :content-transfer-encoding:user-agent: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=d7kNPkhBDrRbA2fVdj0pDRN+NPm7VcK52DDhgQbt5wA=;
        b=xqfPpuvDoCEK1Gs+6v34t2XBpI5LEl80UACls7PbYG75JDMAUWLYfMkvbWW2cRbjQ3
         gOADEBFY7rRZNGZHMp6tKhdR7KIibVcrig1CaGOidudxzXcyH2WBiozXorsYduvrpsci
         WORWGuXiCBmQ0STXrKPGiLGyjX24qUvzAgMKAjWLs/h49Am1RFXb+D0HAdH/d4VlSGFo
         iVtLaysqrHF+hkUztS3U4GftoIPYe7Rov4wzR8ngQ2DzoPadEGbdQhqy1p92OSYOMYjv
         tJk3asy/vN7RZSbTfpQObRJ+LrpE09sIPSzEU5tyqcabUMdntf2xeFLjrmdnLzFwuwNX
       
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-transfer-encoding:user-agent: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=d7kNPkhBDrRbA2fVdj0pDRN+NPm7VcK52DDhgQbt5wA=;
        b=npXtC3uusXdOGWuVU48SYdC/CVeG3vRCWOYLqTGpejql8pzm4Biikf1doekR4p91Ur
         GEVaxdN7zsAvU0LBk7YLroW05f6ahHiquUOZmE1ksX1uXzVNU4p5Lv5Ka3x2/x7zCVYO
         wjryqsLWMXR5JXy99jS9sQy0QzpaluVDSfAkKBa/GjRiGZt1DLT/hVKdXywUaNRU6gHW
         aAZNNZ7Yds8YZKA8rICYTvRA7ZTDF9E3aJW7FmLytb1dkqAY44cWxt5KPziogYG/mKhg
         qJyf6lbZRm9ZugLMPDobL0/Hb/4WjUxZWgWYQ 
X-Gm-Message-State: ALKqPwe3wTNlHdn2eXf1FqIPKvojC4v9zvJce6q4xcLjlSOWzjQlNWPB
	dj+bJb8sQiqX+lHunC09tZU=
X-Google-Smtp-Source: AB8JxZqX45K2/Co+BdBygG469lt0jpDrLasuVO+KmanuEMluWMn9UBmqd+XwR5PS/JRs9473D3dWEA==
X-Received: by 2002:a2e:6e14:: with SMTP id j20-v6mr232364ljc.0.1525993416439;
        Thu, 10 May 2018 16:03:36 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a2e:97cd:: with SMTP id m13-v6ls962854ljj.8.gmail; Thu, 10
 May 2018 16:03:34 -0700 (PDT)
X-Received: by 2002:a2e:7213:: with SMTP id n19-v6mr2289928ljc.71.1525993414652;
        Thu, 10 May 2018 16:03:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1525993414; cv=none;
        d=google.com; s=arc-20160816;
        b=p65piEG9iqbxwGx8EoJ86ikrWD9z0O5dl7dt5kKKyHLt4FwvVDoR3PXEGLWmfD/LIA
         wMX6HUmJ/KPXlNHfJcHnVkOhq6/STCJYwhm5tg//1h2glCcN0a75ET2VPrAaWOuvQOpl
         LXjMF1/+J2El7c2JsWYySuJCHWWyz0yvwihEdyXNHCNcJlt6zpI/rcq7WNisufJ2f+4B
         Q+g6Tg8pjkzzFXLYp2EycjFqnI3zLHv1+1AGDfbGF0QvS3oAIDBixQiK/dfoflG5Ko+c
         p6ZUMTjvt5Kk32xULopPPhYfkCikrKNnsdfkXeUwvFqm/z7Vp8NHza4gA2XumFhoUU0u
         0/mQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-language:in-reply-to:user-agent:content-transfer-encoding
         :mime-version:references:message-id:lines:date:subject:from:to
         :arc-authentication-results;
        bh=qNkngSPcdE1zU/rmLH0Nggl88xmyya6ZSuLSBKfZ7cA=;
        b=FnukS3R27MKgqZFAqziiaYRDUngHXghAYaY93vyP4Nr/8UpGccuQWK96CjDI9h0Pqz
         X1fYW69UPGlxha0oO0e7fIyQTKpfkT6ef2qlX+cTzObxPleK1DrcgYN/tUHcvDqsuPz1
         DpvBBk8WjehtR2kiwP1N605mf7eTdeQxJ0GdIrfVNwZa0jZ5S51KP0p9wTRh1pjNQv1L
         nsvw2vgnYau2AIpq28bk2lOonngAAPOJCNIFU0/vpRp8V9VDfBa1KFr2PFqLNPMnGXY5
         tDAoW1Ksi4/A7oYVR1nqS5hKJXQnvfelxvEpC4Q+0+0k8rXcyw01HcY3QyFndi3rQDT2
         1rrg==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id c83-v6si783882lfh.387.2018.05.10.16.03.34
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 10 May 2018 16:03:34 -0700 (PDT)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1fGuYr-0007fd-MN
	for std-proposals@isocpp.org; Fri, 11 May 2018 01:01:21 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 37
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <75fb8736-b92a-480f-9a36-310b3e03b131@isocpp.org>
Content-Language: en-US
X-Original-Sender: philippeb8@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE sp=QUARANTINE 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-Spam-Checked-In-Group: 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:38062
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/38062>

On 05/02/2018 07:26 AM, Phil Bouchard wrote:
> Unless we bring the notion of "partial declarations" and forward=20
> declarations of nested structures are made like this:
>=20
> class X
> {
>  =C2=A0 =C2=A0 struct A;
>  =C2=A0 =C2=A0 .... // ellipsis operator here
> };
>=20
> X::A=C2=A0* p =3D nullptr; // error
>=20
> class X
> {
>  =C2=A0 =C2=A0 struct A;
>  =C2=A0 =C2=A0 void foo()
>  =C2=A0 =C2=A0 {
>  =C2=A0 =C2=A0 =C2=A0 =C2=A0 X::A=C2=A0* p =3D nullptr; // fine
>  =C2=A0 =C2=A0 }
> };
>=20
> This way that would solve the access scope problem cleanly.

Do we all agree this is a good solution? This could provide friend=20
declarations as well:

class X
{
      friend struct A;

      struct A;
      .... // ellipsis operator here
};


Regards,
-Phil

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/pd2ivq%24saf%241%40blaine.gmane.org.

.
