Re: When did forward method references become legal?
Re: When did forward method references become legal?
- Subject: Re: When did forward method references become legal?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 08 Mar 2012 07:46:39 -0800
> Date: Tue, 06 Mar 2012 15:26:10 -0500
> From: Sean McBride <email@hidden>
>
> On Tue, 6 Mar 2012 10:14:31 -0800, Jens Alfke said:
>
>> 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.
>
> Isn't it annoying that the very language changes in this way, without (hardly) any notice?!?!
I just read a message on the dev forums complaining that in a project with multiple developers, those using 4.3 are writing code that those using 4.2 can't compile... Of course one could reply "So don't do that" (i.e., develop using different versions of Xcode), but still, some formal warning of this change would have been useful.
Not to mention what it does to those of us in the last stages of trying to ship a book about this whole thing... :) m.
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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