I look at Objective-C, and I notice, for example, that the declaration of a class class begins with @interface. Great, no problem. Therefore, the text assumes that between @and interfacespace is not allowed. However, when I pass the following simple example to the GCC compiler in a file *.m:
@ interface A
@ end
the compiler accepts the code without complaint. Can someone point Me in the direction of the link, which explicitly states whether or @ interfacealso is acceptable using the Objective-C specification? I did not find anything in the Apple 2008 and 2011 docs to say anyway other than the plain text mentioned earlier in the question.
Thanks in advance.
EDIT . It may be worth noting that Emacs colorizes the text based on whether the identifier is a keyword or not; keywords are blue, not keywords are yellow. Color is @interfaceblue and @ interfacecolor is yellow. Similar behavior is observed in Vim.
source
share