This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: for the future: Plan 9's anonymous structs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]