Is objective C 2.0 a proper superset of C?
Posted
by RankWeis
on Stack Overflow
See other posts from Stack Overflow
or by RankWeis
Published on 2010-06-03T06:51:46Z
Indexed on
2010/06/03
6:54 UTC
Read the original article
Hit count: 118
objective-c
I've heard that objective-C is a proper superset of C, but is objective-C 2.0?
The reason I ask is that either it isn't, or I misunderstand the phrase 'proper superset', because this code is valid C syntax:
import
int main () {
char *nil = "hello";
printf("%s\n",nil);
}
But does not compile in Objective-C 2.0. Obviously, this is an easily fixable problem, but I'm writing a paper, and feel that this is something that should be pointed out.
© Stack Overflow or respective owner