Re: Private Method?
Re: Private Method?
- Subject: Re: Private Method?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 07 Nov 2011 10:19:36 -0500
On Nov 7, 2011, at 4:10 AM, Jean-Daniel Dupas <email@hidden> wrote:
>
> Le 7 nov. 2011 à 08:49, Joar Wingfors a écrit :
>
>>
>> In OjbC you don't need to provide declarations for a method "foo" if all callers of foo can "see" the definition of foo (ie. if they are themselves defined *after* foo). The definition also serves as a declaration in such a case.
>
> Note that the 'defined after' constraint is merely a compiler limitation. Recent clang builds don't require this anymore. You can defined your private methods anywhere in the implementation.
Well this is certainly a welcome development. Is this documented or announced anywhere? I don't (currently) subscribe to any clang mailing lists.
--Kyle Sluder_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden