When did forward method references become legal?
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