Sunday, July 5, 2009

Objective C has Dynamic Typing

Commonly:

NSString *charlieBrownAuthor = @"Charles Schultz";
NSLog(charlieBrownAuthor);



But Dynamically:

id nm = @"Funky Chicken";
NSLog(nm);


Apparently all type checking is done at compile time. (not run time)

No comments:

Post a Comment