Strange compiling behaviour with protocols
Strange compiling behaviour with protocols
- Subject: Strange compiling behaviour with protocols
- From: Rob Rix <email@hidden>
- Date: Sun, 24 Jun 2001 04:33:45 -0400
Something odd is going on here. I have a protocol, declared exactly like
this:
@protocol CBGProtocol
{
-(void)newSearch;
}
@end
And guess what, the compiler is throwing three errors.
1) illegal protocol declaration, missing '@end' (on the first line)
2) illegal method definition, found '}' (on the fourth line)
3) '@end' must appear in an implementation context, found '@end'
(obviously on the fifth line).
What the heck is going on here?
I'm beginning to wonder if I've seriously screwed up my compiler or
something. I dunno. This is just plain _weird_.
Note also that I have three other protocols in this project, declared in
the exact same fashion, and thus far, it hasn't complained about any of
them.
-- Rob
If there's anything more important than my ego around, I want it caught
and shot now. - Zaphod