220 7636 <a54ba091-3aeb-4fd5-b55e-584571f4e746@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Daryle Walker <darylew@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Proposal to add C99 designated initializers to C++
Date: Fri, 8 Nov 2013 02:48:15 -0800 (PST)
Lines: 60
Approved: news@gmane.org
Message-ID: <a54ba091-3aeb-4fd5-b55e-584571f4e746@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_364_8822468.1383907695542"
X-Trace: ger.gmane.org 1383907695 11725 80.91.229.3 (8 Nov 2013 10:48:15 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 8 Nov 2013 10:48:15 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDS6X4FNQMPBB4EC6OJQKGQEM7W2J3Y@isocpp.org Fri Nov 08 11:48:21 2013
Return-path: <std-proposals+bncBDS6X4FNQMPBB4EC6OJQKGQEM7W2J3Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ve0-f197.google.com ([209.85.128.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDS6X4FNQMPBB4EC6OJQKGQEM7W2J3Y@isocpp.org>)
	id 1Vejbw-0000qq-6X
	for gclcip-std-proposals@m.gmane.org; Fri, 08 Nov 2013 11:48:20 +0100
Original-Received: by mail-ve0-f197.google.com with SMTP id c14sf181582vea.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 08 Nov 2013 02:48:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=pY77+LorRSMJRuIHeBYttz9l2UMmvzh0OjRJI7VAozs=;
        b=jsGYhtHaRRdY7WSgCqDPd4wxYx+WdHDdgRqQVGdHus+SyqNuD51YGgjmMl5XD/NCE1
         uFu1dFO0mSty9FaxBTqcGy9ZzZB+/aaAP8I8xxtmemE2RXerHCtdH6+2/eTVXIcDkEEi
         aU03mYWY7N0XOxXv1g4LODb7aoOfgigEvi3sfMGJLkl0z4c2BozF7BiWPN6cP1W3E2uN
         E7jxRkKjZtKfsW1JxrmhzPr3Gatv7fTxJ/5q8EyBftFSyuaaieHE5PFRteuyJpzZQBBO
         /lQxn+wdh4FkXYkR9GPgVPGurQUNL2c5e7tVHVDotUYzmx0Za8vv0634wvFB6DSmGVM6
         T6Tg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=pY77+LorRSMJRuIHeBYttz9l2UMmvzh0OjRJI7VAozs=;
        b=NtEgsJ5A4J+BhmTyrSDAau+6kirOLqVh7u6x7jwmKfEOojJt2RzUEgMHvX3JOKktVg
         HqzvH/t308XJtx724F2etlfQB21OhhcS1uR3nli2W/wKQVliab1eSwyFzhuABgRWbFmc
         kzmEcgOC9EgpkMW4+SrGllHeDSDJ3EgrNbA8iVV8LXy2Bc2tmu3gN4rCZNiNCtufqD0n
         e21ahJtVCPd8IexkZMldOjHqF49NVjdZYdcu1BehuvPoS2+tU8HcJwOPKM5+L/pnO4kT
         RlTDPoiAp6acRAAM3rDjNJANZqwQShhnHPXI05VRk4S21BfFSTYkIEzFHnz7KgVDZu39
         kBNw==
X-Gm-Message-State: ALoCoQmEoOLgvO2y4pAdiXtLiv4CueVqrkh+gYkLuf4CNGLlyEaEltKJzfMGXJE8IsLVVaA22jnp
X-Received: by 10.236.20.114 with SMTP id o78mr2312639yho.8.1383907699407;
        Fri, 08 Nov 2013 02:48:19 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.24.194 with SMTP id w2ls1025474obf.20.gmail; Fri, 08 Nov
 2013 02:48:16 -0800 (PST)
X-Received: by 10.182.251.200 with SMTP id zm8mr176199obc.2.1383907696215;
        Fri, 08 Nov 2013 02:48:16 -0800 (PST)
X-Original-Sender: darylew@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:7636
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7636>

------=_Part_364_8822468.1383907695542
Content-Type: text/plain; charset=ISO-8859-1

[Excuse any mistakes from me doing an all-nighter to get this proposal out 
here.]

I made a proposal<http://htmlpreview.github.io/?https://raw.github.com/CTMacUser/multiarray-iso-proposal/master/designation-proposal.html>on how to have C99's designated initializers in C++. In C, you can precede 
an initializer inside a struct/union or array aggregate with the access 
method ([x] for array elements, ".Whatever" for structs and unions, and can 
mix & match) to get to a specific subobject to be initialized. I had to 
create the text nearly from scratch since C and C++ use very different ways 
to express the same concepts. Plus C++ has to worry about non-dumb classes.

I'd especially like if the crew for Microsoft Visual Studio 2013 took a 
look to see if I described your practice correctly.

Daryle W.

-- 

--- 
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/.

------=_Part_364_8822468.1383907695542
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>[Excuse any mistakes from me doing an all-nighter to =
get this proposal out here.]</div><div><br></div><div>I made a <a href=3D"h=
ttp://htmlpreview.github.io/?https://raw.github.com/CTMacUser/multiarray-is=
o-proposal/master/designation-proposal.html">proposal</a> on how to have C9=
9's designated initializers in C++. In C, you can precede an initializer in=
side a struct/union or array aggregate with the access method ([x] for arra=
y elements, ".Whatever" for structs and unions, and can mix &amp; match) to=
 get to a specific subobject to be initialized. I had to create the text ne=
arly from scratch since C and C++ use&nbsp;very different ways to express t=
he same concepts. Plus C++ has to worry about non-dumb classes.</div><div><=
br></div><div>I'd especially like if the crew for Microsoft Visual Studio 2=
013 took a look to see if I described your practice correctly.</div><div><b=
r></div><div>Daryle W.</div><div><br></div></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_364_8822468.1383907695542--

.
