Reputation: 3271
I was typing a comment in Xcode, but forgot the leading //
. I noticed that and
was highlighted like a keyword. I did a bit of Googling, but I can't seem to figure out what it does (or even if it's a real keyword).
What does it mean?
Upvotes: 7
Views: 458
Reputation: 8907
It is not a keyword. Objective-C shares exactly the same keywords as C with additional ones that always start with '@'.
EDIT: This question doesn't answer the original post (see Rob Napier's succint answer for this), but rather it highlights that 'and' is a macro in some standard library headers and not a reserved word.
Quote from the C standard (C11, n1570), page 58:
6.4.1 Keywords
keyword: one of auto, break, case, ... [list of words not including 'and']
Upvotes: 4