Re: Protocol doesn't seem to compile?
Re: Protocol doesn't seem to compile?
- Subject: Re: Protocol doesn't seem to compile?
- From: Ondra Cada <email@hidden>
- Date: Fri, 27 Feb 2004 15:49:41 +0100
On Friday, Feb 27, 2004, at 15:32 Europe/Prague, Jason Vowell wrote:
Yes of course it is checked if referenced by an implementing class,
per my
post
"If I make a syntax mistake
the compiler ignores it, unless of course the protocol is
referenced by an implementing class."
And of course the apple documentation says this as well
But that isn't the point... the point is that they aren't check if not
referenced
Wrong, too:
61 /tmp> >ptest.m
#import <Foundation/Foundation.h>
@protocol Test
-(int)foo;
-bar:(uh oh)o; // this is a syntax error, of course
@end
62 /tmp> cc -framework Foundation ptest.m
ptest.m:4: undefined type, found `uh'
ptest.m:4: illegal keyword selector, missing `)' after `uh'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
ptest.m:4: parse error before "uh"
63 /tmp>
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.