• 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
When did forward method references become legal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When did forward method references become legal?


  • Subject: When did forward method references become legal?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 06 Mar 2012 10:14:31 -0800

I just discovered by accident that you no longer need to forward-declare an Obj-C method that's called above the source line where it’s implemented:

	@implementation Foo
	- (void) first { [self second]; }   // <—no longer a compile error
	- (void) second { }

I’m using Xcode 4.3; anyone know what version this was added in? I didn’t see anything relevant in the very cursory Xcode release notes or what’s-new document, and I couldn’t find any Clang release notes.

—Jens
 _______________________________________________
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: When did forward method references become legal?
      • From: Sean McBride <email@hidden>
    • Re: When did forward method references become legal?
      • From: Phillip Mills <email@hidden>
    • Re: When did forward method references become legal?
      • From: Thomas CLEMENT <email@hidden>
  • Prev by Date: Re: Xcode - An Apple Embarrassment NOT
  • Next by Date: Re: Xcode - AN APPLE OPPORTUNITY!
  • Previous by thread: Re: File confusion
  • Next by thread: Re: When did forward method references become legal?
  • Index(es):
    • Date
    • Thread