ObjC: attributes on methods

Timothy J. Wood tjw@omnigroup.com
Sun Mar 10 16:46:00 GMT 2002



   It doesn't look like attributes can be applied to ObjC methods:

@interface Foo
+ (void) printf: (const char *) fmt, ... __attribute__ ((format (printf, 
3, 4)));
@end

   Is there any major reason for this, or is it just because no one has 
wanted it before?

-tim



More information about the Gcc mailing list