Re: Protocol doesn't seem to compile?
Re: Protocol doesn't seem to compile?
- Subject: Re: Protocol doesn't seem to compile?
- From: Sherm Pendley <email@hidden>
- Date: Fri, 27 Feb 2004 10:48:06 -0500
On Feb 27, 2004, at 10:01 AM, Jason Vowell wrote:
I don't particularly appreciate your asinine attitude
*What* asinine attitude? Ondra's simply reporting the results he's
getting. The fact that he is seeing different results than you is not a
personal attack.
Anyway, I got the same results he did:
test.h:
@protocol Test
-(int)foo;
-bar:(uh oh)o; // this is a syntax error, of course
@end
test.m:
#include <stdio.h>
#import "test.h"
int main(arc,argv) {
printf("Howdy, world\n");
}
The results with GCC 2.95.2:
test.h:3: undefined type, found `uh'
test.h:3: illegal keyword selector, missing `)' after `uh'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from test.m:2:
test.h:3: parse error before `uh'
With GCC 3.1:
test.h:3: undefined type, found `uh'
test.h:3: illegal keyword selector, missing `)' after `uh'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from test.m:2:
test.h:3: parse error before "uh"
And finally, with GCC 3.3:
In file included from test.m:2:
test.h:3: error: parse error before "uh"
test.h:4: warning: `@end' must appear in an implementation context
sherm--
_______________________________________________
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.