PATCH: Find more ObjC methods

Pete French pete@twisted.org.uk
Tue Oct 7 09:12:00 GMT 2003


> I'm not really sure if this statement is intended as a joke, as the
> smilie implies, or not. Do I need to explain why conventions, in
> addition to what the language enforces, and with help from the compiler
> in following them, are a good thing?

There is also a convention of not shoveling loads of things into the same
source file in ObjC too though. If you stuck to one file per object or category
then the problem doesnt arise. I would have said the new behaviour is very
sensible - i.e. if a method on a class is visible in a source file then it is
understood to be avaialble throughout the rest of the source file. Indeed,
thats how I thought it already worked, and was rather siurprised to find it
doesnt!

The new behaviour seems 1) very reasonable and 2) enirely consistent with what
C does. If you follow the convention of each category in its own source
file then you get the same warnings you do now.

-bat.



More information about the Gcc-patches mailing list