• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Doesn't Xcode 4.2 support instancetype?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)”.

—Jens

* http://clang.llvm.org/docs/LanguageExtensions.html#objc_instancetype

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

  • Follow-Ups:
    • Re: Doesn't Xcode 4.2 support instancetype?
      • From: lowell <email@hidden>
  • Prev by Date: (Solved) NSRangeException on iPod but not on iPad or iPhone Simulator
  • Next by Date: Re: Doesn't Xcode 4.2 support instancetype?
  • Previous by thread: (Solved) NSRangeException on iPod but not on iPad or iPhone Simulator
  • Next by thread: Re: Doesn't Xcode 4.2 support instancetype?
  • Index(es):
    • Date
    • Thread