220 7675 <f785252a-b2e1-4130-b8a4-33f7c7da3b22@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Daryle Walker <darylew@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal to add C99 designated initializers to C++
Date: Sun, 10 Nov 2013 15:58:51 -0800 (PST)
Lines: 126
Approved: news@gmane.org
Message-ID: <f785252a-b2e1-4130-b8a4-33f7c7da3b22@isocpp.org>
References: <a54ba091-3aeb-4fd5-b55e-584571f4e746@isocpp.org>
 <CAN=4vMpv76dsCP1s_bAsToLADdAq6z6J=FV4qfmZO5x6WwXBVg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1907_9741748.1384127931300"
X-Trace: ger.gmane.org 1384127929 12227 80.91.229.3 (10 Nov 2013 23:58:49 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 10 Nov 2013 23:58:49 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDS6X4FNQMPBBPF3QCKAKGQEC4SLY6Y@isocpp.org Mon Nov 11 00:58:55 2013
Return-path: <std-proposals+bncBDS6X4FNQMPBBPF3QCKAKGQEC4SLY6Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f199.google.com ([209.85.223.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDS6X4FNQMPBBPF3QCKAKGQEC4SLY6Y@isocpp.org>)
	id 1Vfeu6-0002IZ-UM
	for gclcip-std-proposals@m.gmane.org; Mon, 11 Nov 2013 00:58:55 +0100
Original-Received: by mail-ie0-f199.google.com with SMTP id qd12sf14356017ieb.6
        for <gclcip-std-proposals@m.gmane.org>; Sun, 10 Nov 2013 15:58:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references: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=so/Os3C6Fr4lSVywDWVgS55ENYocNArCZWAszeU4g8w=;
        b=WSrG9I8foUa9y7iClpk5h/XtcStYJvp9579TFSJrbzUiua3WZZmvpx1vrIUfbNlJq7
         rrQNvtJHDx+Qgh/2NmTVQi2xz8Bb2SpE2UIw3cAsvtfdmVWM26PuuShmGlroiu3Hw28i
         Tip5J+yJ8QDgzKLEqsFCo14i0FS63jfmnwkAJ1hVDLMTVQVOMIcZhb4KqSy5qoyXXEjB
         TpC1ucKMSdgA0FSfFKCT7QDAuw9QpOOsgum+1bhsR3QaClbAP/pIEkRst3012RjVmKbf
         fcEXdVks0xv7tl/rhI/Pyk/gsjfBbZcDn+OjOACyNtct+BKbrSfzOEn/RBpfKA9kIah5
         WCDA==
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:in-reply-to:references
         :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=so/Os3C6Fr4lSVywDWVgS55ENYocNArCZWAszeU4g8w=;
        b=aOypybJrCesMCY0K3S7eTpZgJQGtmgIU902iuZXKZWKLLKxjpSAMUfIUERXIPQQ8ad
         wTp5a8NoTUgpD14/RulOUxqfD4CMWn4J1vNOR/Ev5gwx5QS3gwtDlQnV3XOqHY5u9jJ/
         e6HfM+RTqyy/zcPpVtAPwjplTbk4twU5381RAjw4ZxGwZoXZdLewIsiZHskzrxAuZuk9
         1N1xK8qgqtQkkF1Emh5jNm7XLXi2SswmOVjTYfEk3PJkZolczxDD1IKYg8jkPMCHAO2+
         VTQ93C43rIRQkJXgOY7Fx51/Zy8pB+4fbru85/VOIcGpYn/Abu0bVBLY+0TOv5yw2G+C
         gJYw==
X-Gm-Message-State: ALoCoQmHJ83ze6EI5l8eH+smnk/hYPDWpL5cW1DoJzsy67UevLDLr5B2litRwwbC4kWCIU72WVqq
X-Received: by 10.50.114.66 with SMTP id je2mr4913291igb.5.1384127933623;
        Sun, 10 Nov 2013 15:58:53 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.104.39 with SMTP id gb7ls1563838obb.58.gmail; Sun, 10 Nov
 2013 15:58:52 -0800 (PST)
X-Received: by 10.182.213.41 with SMTP id np9mr286583obc.3.1384127931984;
        Sun, 10 Nov 2013 15:58:51 -0800 (PST)
In-Reply-To: <CAN=4vMpv76dsCP1s_bAsToLADdAq6z6J=FV4qfmZO5x6WwXBVg@mail.gmail.com>
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:7675
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7675>

------=_Part_1907_9741748.1384127931300
Content-Type: text/plain; charset=ISO-8859-1

OK, so could representatives from both the Visual Studio and Clang teams 
take a look? (If GCC also does it, or wants to, they can take a look too.)

Daryle W.


On Friday, November 8, 2013 6:27:40 AM UTC-5, Roman Perepelitsa wrote:
>
> FYI: clang supports designated initializers for aggregates when compiling 
> in C++11 mode.
>
> Roman Perepelitsa.
>
>
> 2013/11/8 Daryle Walker <dar...@gmail.com <javascript:>>
>
>> [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-proposal...@isocpp.org <javascript:>.
>> To post to this group, send email to std-pr...@isocpp.org <javascript:>.
>> Visit this group at 
>> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>>
>
>

-- 

--- 
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_1907_9741748.1384127931300
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">OK, so could representatives from both the Visual Studio a=
nd Clang teams take a look? (If GCC also does it, or wants to, they can tak=
e a look too.)<br><br>Daryle W.<br><br><br>On Friday, November 8, 2013 6:27=
:40 AM UTC-5, Roman Perepelitsa wrote:<blockquote class=3D"gmail_quote" sty=
le=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left=
: 1ex;"><div dir=3D"ltr">FYI: clang supports designated initializers for ag=
gregates when compiling in C++11 mode.<div><br></div><div>Roman Perepelitsa=
..</div></div><div><br><br><div class=3D"gmail_quote">2013/11/8 Daryle Walke=
r <span dir=3D"ltr">&lt;<a href=3D"javascript:" target=3D"_blank" gdf-obfus=
cated-mailto=3D"KZhWvI3OZCgJ">dar...@gmail.com</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>[Excuse any mistakes f=
rom me doing an all-nighter to get this proposal out here.]</div><div><br><=
/div>

<div>I made a <a href=3D"http://htmlpreview.github.io/?https://raw.github.c=
om/CTMacUser/multiarray-iso-proposal/master/designation-proposal.html" targ=
et=3D"_blank">proposal</a> on how to have C99's designated initializers in =
C++. In C, you can precede an initializer inside a struct/union or array ag=
gregate with the access method ([x] for array elements, ".Whatever" for str=
ucts and unions, and can mix &amp; match) to get to a specific subobject to=
 be initialized. I had to create the text nearly from scratch since C and C=
++ use&nbsp;very different ways to express the 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 St=
udio 2013 took a look to see if I described your practice correctly.</div><=
div><br></div><div>Daryle W.</div><span><font color=3D"#888888"><div>

<br></div></font></span></div><span><font color=3D"#888888">

<p></p>

-- <br>
&nbsp;<br>
--- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
KZhWvI3OZCgJ">std-proposal...@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"javascript:" target=3D"_bla=
nk" gdf-obfuscated-mailto=3D"KZhWvI3OZCgJ">std-pr...@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/<wbr>isocpp.or=
g/group/std-<wbr>proposals/</a>.<br>
</font></span></blockquote></div><br></div>
</blockquote></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_1907_9741748.1384127931300--

.
