This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: PATCH: objc-improvements-branch merge -- Part 2



On 13 Aug, 2004, at 11.06, Matt Austern wrote:
The problem is that if header A.h #includes B.h in an extern "C" block, then neither B.h, nor any header that it includes transitively, can contain C++ features like overloading or templates. And if you think that doesn't apply to these particular headers: are you sure that nobody five years from now will ever want to modify objc.h so that it includes inttypes.h or stdbool.h stddef.h, and that nobody a few years after that will ever modify one of those headers so that it uses those sorts of features? The people at SGI who made this mistake were sure itg was safe too. And it was---when they did it.

Wrapping extern "C" around a #include creates a nasty trap. We should always avoid it.

Yes, I see your point. Andrew, do you mind fixing this? :-) :-)


--Zem
--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477


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