Doesn't Xcode 4.2 support instancetype?
Doesn't Xcode 4.2 support instancetype?
- Subject: Doesn't Xcode 4.2 support instancetype?
- From: Jens Alfke <email@hidden>
- Date: Wed, 07 Dec 2011 20:33:46 -0800
The LLVM CLANG language extensions page* documents an Objective-C extension called “instancetype”. But when I tried to use this in Xcode 4.2 using the “Apple LLVM 3.0” compiler, it doesn’t recognize the extension. __has_feature(objc_instancetype) evaluates to false, and using “instancetype” as the return type of a method causes a syntax error. What’s going on?
According to “clang --version” I’ve got "Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)”. |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden