This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: for the future: Plan 9's anonymous structs
- To: mrs at wrs dot com (Mike Stump)
- Subject: Re: for the future: Plan 9's anonymous structs
- From: Zack Weinberg <zack at rabi dot columbia dot edu>
- Date: Wed, 13 Jan 1999 19:04:14 -0500
- cc: egcs at cygnus dot com
On Tue, 12 Jan 1999 18:38:16 -0800, Mike Stump wrote:
>> Date: Tue, 12 Jan 1999 02:17:10 -0500
>> From: Zack Weinberg <zack@rabi.columbia.edu>
>
>> Plan 9's C compiler has an extension which is very useful: anonymous struct
>> members.
>
>> I suppose I can attempt to do this myself, but I know nothing about the C
>> front end, so where would I start and how hard would it be?
>
>Part of the benefit of GNU C, is that it has a nice predictible
>(usually) relationship with GNU C++. This is achived in part because
>features are added to both C and C++ at the same time. C++ I think
>may complicate the above extension, and one should examine C++ and
>it's required semantics before doing this for C so as to not diverge
>them more than necessary.
Makes sense. I know absolutely nothing about C++. Someone said, however,
that (part of) this feature was already there. Time for me to do some
homework...
zw