From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Fri, 15 Mar 2013 12:52:32 -0400 Message-ID: From: "Joel C. Salomon" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [9fans] ISO C and typestr Topicbox-Message-UUID: 2a779e5c-ead8-11e9-9d60-3106f5b1d025 Has anyone presented the 9c extension typestr to the C standardization committee (WG14)? Looking at the documents at , I see that various vendors have let the committee know about their extensions, both to offer directions for future standardization and to ensure that the committee's new ideas don't break existing code based on those extensions. BTW, the C11 standard includes a restricted form of 9c's anonymous sub-structs (with no pointer conversion). =E2=80=94Joel From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 15 Mar 2013 17:01:54 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e010d8574aab30304d7f998d6 Subject: Re: [9fans] ISO C and typestr Topicbox-Message-UUID: 2a8f1956-ead8-11e9-9d60-3106f5b1d025 --089e010d8574aab30304d7f998d6 Content-Type: text/plain; charset=UTF-8 On 15 March 2013 16:52, Joel C. Salomon wrote: > BTW, the C11 standard includes a restricted form of 9c's anonymous > sub-structs (with no pointer conversion). > isn't the pointer conversion most of the point of them? --089e010d8574aab30304d7f998d6 Content-Type: text/html; charset=UTF-8

On 15 March 2013 16:52, Joel C. Salomon <joelcsalomon@gmail.com> wrote:
BTW, the C11 standard includes a restricted form of 9c's anonymous
sub-structs (with no pointer conversion).

isn't the pointer conversion most of the point of them?
--089e010d8574aab30304d7f998d6-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 15 Mar 2013 13:09:13 -0400 Message-ID: From: "Joel C. Salomon" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] ISO C and typestr Topicbox-Message-UUID: 2a9cba3e-ead8-11e9-9d60-3106f5b1d025 On Fri, Mar 15, 2013 at 1:01 PM, Charles Forsyth wrote: > On 15 March 2013 16:52, Joel C. Salomon wrote: >> BTW, the C11 standard includes a restricted form of 9c's anonymous >> sub-structs (with no pointer conversion). > > isn't the pointer conversion most of the point of them? Given this code: typedef struct Foo Foo; struct Foo { int flag; Lock; } *foo; C11 allows you to write `lock(foo->Lock)`, or to directly access named members of `struct Lock` as if they were members of `struct Foo`. An early draft of the feature did allow `lock(foo)`, but that was rejected (I don't know why). =E2=80=94Joel