220 36482 <2830355.7vpS7njdV0@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Interchangeable syntax for type forward declarations
Date: Wed, 03 Jan 2018 17:35:13 -0200
Lines: 32
Approved: news@gmane.org
Message-ID: <2830355.7vpS7njdV0@tjmaciei-mobl1>
References: <848201ee-7402-4c4d-8a16-af610f945944@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 1515008017 26356 195.159.176.226 (3 Jan 2018 19:33:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 3 Jan 2018 19:33:37 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB7XAWTJAKGQEBEPHPPI@isocpp.org Wed Jan 03 20:33:33 2018
Return-path: <std-proposals+bncBCB4TK757YBRB7XAWTJAKGQEBEPHPPI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt0-f199.google.com ([209.85.216.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB7XAWTJAKGQEBEPHPPI@isocpp.org>)
	id 1eWomy-00064y-OY
	for gclcip-std-proposals@m.gmane.org; Wed, 03 Jan 2018 20:33:24 +0100
Original-Received: by mail-qt0-f199.google.com with SMTP id r58sf1834055qtc.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 03 Jan 2018 11:35:28 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1515008127; cv=pass;
        d=google.com; s=arc-20160816;
        b=dscK8qBHj6wssfXF9DGf9JjV6Nbjnp9scQW0eXshWPZmy/bPxTdyU+9sSnuYsDiWo1
         SCy4JgcUJpfDaHmA8TgTfiifw9QHYOJNgJt0Vs8Nxbq5cc3JLiKtQ63XMN8TA53W99jB
         mAX6aFiqGS5Q6WdIDD8nm2Yt777JjxSuIT6Lg4tE9148w5cuZ0Mp0l+05fgq3pbJ8rup
         4OM3q21YhMwRLMB8m8817E/jbAVFKiFEo6trYR8l59+vwsg5ZWCnmVKcvlh2bXdAnUAm
         Thj5QUm5iu40dRhcGzM2ENvg9l+qG9HOI3reSc6EzS9IOlath3aclxaQJvcO3R/7UcIB
         ++lg==
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:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=Zeu8virKBiSfH5R15H9N/VfvsnOE+rbJIPFhZymG94Y=;
        b=oIIp1lMD89pBiv9qGv2vRlb3ZAU/NACUiZ/g6jTmTPrGFNc452UyVkAnQYxi1EqBjB
         4m47CKXLJEdjkVv5eu/R0zsuT/1FebMeN7sSblUaU43e1PCnIv+drNdPW++6Mu1fX5hP
         WZ4vUlTi0wWktsUIfBEkAdwCT48Dcp4ps/IATvDRK0SjXe0F7bCt6p+7hX2WKDobOGz6
         6UJQ2wY0zn4rJXDpDRw6MjepajUJ37HsgQtWwwWrHzN8Uewj8UdYETzgD1k3gAtcUWEF
         1veu2qy+I8UeelIP2sBXm8BEdbP/gbZz95NVy8hsyqR7Ei53AIuoPzE/ZfiqmizpLR6k
         SGfA==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id: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;
        bh=Zeu8virKBiSfH5R15H9N/VfvsnOE+rbJIPFhZymG94Y=;
        b=Is/8wcWWVqgykQ6Ef+dk+Qb4TPAvV2W4V05y6kGM5kkJTPopq0h25MT/niM6t66JPf
         LP1RuHnP1COtwUkizaIp/U7+T+ma7h6DvUx9RRKQeGlkPRGGAUTehFaJwG1+rMmXUb1J
         ub7Ub2BG0vH3qidhneW4X30ZKL8Waeg1lXvnNOu186yhDNXNCFBqVD814zzpj7ohjs7U
         beUSdi13YCJrObi2w4Hxk9/JDXnFIwfiaKP6xFKPJJ0wGLrVKMUleiHmM0ozlem7ADt/
         npoeZhWVCFBJaexhMq9tOztll01H8Y3YUTTV60O5PIj3lhMvkGP77pfbv1TqfnVEiuGd
         +8lQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version: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=Zeu8virKBiSfH5R15H9N/VfvsnOE+rbJIPFhZymG94Y=;
        b=JqMXkcaSqufA3cTaglPF+c4NqJ1pX5kUlJXEibqXMqY8YrfJL51lzFvHxF21qRsVTB
         b8Fz+bf6dk+nFvoOWjpygVaXB7co3Q+5Iwf2RiLrPhAWOp2FsjOKQn9EsDas5WkJJK26
         XXhMEGmt7YgJTOy/RSEuVeWK8o11oTKk65yTAD2Bu7DzK+yXv+xNgwTsvwbaBchhxvqh
         7gVDCvUnodV1tjHbyfaeI2dQHqjwz1oIDXyfiuPSoFdaELeGBFxr58A+aPPr+4dtlKew
         7fEcyCSVGRgT6RJN3mTmDZPPJsYlrN8oMGoCDy/78ohP/FK8ldHjQFWLMcvVo+/YjXMA
         X7Kg==
X-Gm-Message-State: AKGB3mJL8Bol90SgeYIX3GlZafZJgyDwUWlQ2TGoP8b0zPSAdiTKPB+Z
	TLFMPSB6BYhtcJcu53pR2Cz9YQ==
X-Google-Smtp-Source: ACJfBouIrKNNMuuSzLJJPeDv4UaGlTo92RU+1nAzjrgznInMRL665brzOYMypdzo0wAlqzbjW69otA==
X-Received: by 10.200.54.23 with SMTP id m23mr1598033qtb.23.1515008127010;
        Wed, 03 Jan 2018 11:35:27 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.55.203.3 with SMTP id d3ls2966424qkj.4.gmail; Wed, 03 Jan 2018
 11:35:26 -0800 (PST)
X-Received: by 10.55.126.7 with SMTP id z7mr2962463qkc.306.1515008126095;
        Wed, 03 Jan 2018 11:35:26 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1515008126; cv=none;
        d=google.com; s=arc-20160816;
        b=jbZSK+aVe5acxlqv+SNwo8cLiAPsFaluTrNq/jK3v69b6mMVA4wTwXnh81fwbpsuqb
         cHap3wYoadw95mSTunURRYR/JwaG1iG72hTfPo8C0LJ3NpYRBN3Cyr0XrkZtGUuip0oy
         dV14PgKUMWxfu9e3WuVODbGUdJ94Mc7WRqyIZH6ocgfVe1QNxSpjkPT0dTGYR8XLxyS2
         NAIWdftej05ttdbNefbgUU35wt3yfnB1fYOEh8VNC/5NK07pLvcb0qSRXxCDj6yZNIp5
         YQZFvklQ/i9zBEJCI1GI2sDGO/gFniARDbNREsJjHXa0cPEvnx3kmWJnmY8DaqjtYpuE
         d+4w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=pSMGlte3t2nGTAT0J1mQnOBQqCodTwSa8CV7l9yTCpU=;
        b=W4xyVD83Q0qwVmQRJDy6zxfEbHINXUTVksrh+23TJpDZB03wqSe5uYVNZ8fj44+95X
         y/j52xNyvNv1XK1b0UoYWPgZn8gwZggAHPz98wX3V7IrM+h1HAkzd5Mp0fgRKL9QVpFw
         CmeCxN/g4RWtVfYxnuFy0iOKlxVYIzuPCW7aqHa6HgEXJtwZQ+wXiAL7yw9KOJFOLlXP
         uSIeH3iV58tQ8cfy58NVl0pUhC5KVm/XkF/KLtQsqnfNesQ7f1LRxbAIQLww608EU/1W
         +p1jRgpTNCafEOGlLUbVGqlKpXKRnK2WNjounAirm9iQT9Bn9tMB+/4N4u6RT93Onf4L
         tz1g==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (arvernien.macieira.info. [209.222.10.136])
        by mx.google.com with ESMTPS id h138si373887qke.105.2018.01.03.11.35.26
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 03 Jan 2018 11:35:26 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) client-ip=209.222.10.136;
Original-Received: from tjmaciei-mobl1.localnet (unknown [191.254.125.70])
	by smtp.macieira.info (Postfix) with ESMTPSA id 9D12158E2
	for <std-proposals@isocpp.org>; Wed,  3 Jan 2018 11:35:25 -0800 (PST)
In-Reply-To: <848201ee-7402-4c4d-8a16-af610f945944@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=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-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:36482
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36482>

On Wednesday, 3 January 2018 16:29:14 -02 Igor Baidiuk wrote:
> There's one strange inconvenience in C++, which is forward declaring
> certain type. Strange because it's really simple to fix IMO.
> 
> 1. If you forward declare some type with struct/class/union, you're
> required to use the same keyword when you define its body

True for union, not true for struct or class. A union is quite a different 
beast from a struct/class.

> 2. No way to forward-declare type alias.
> 
> Proposal is very simple:
> 1. Make struct/class interchangeable when forward-declaring anything.
> Possibly, allow "typename" to be used in the same context

Struct and class already ARE interchangeable.

> 2. Allow to forward-declare type aliases the same way as normal types

This I'd like to see.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/2830355.7vpS7njdV0%40tjmaciei-mobl1.

.
