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

Andrew Pinski pinskia@physics.uc.edu
Fri Aug 13 18:34:00 GMT 2004


On Aug 13, 2004, at 11:21 AM, Ziemowit Laski wrote:

>
> 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? :-) :-)

Yes I will fix them.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list