• 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
Re: Private Method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Private Method?
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Private Method? (From: Bryan Harrison <email@hidden>)
 >Re: Private Method? (From: Joar Wingfors <email@hidden>)
 >Re: Private Method? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Any success with SMLoginItemSetEnabled?
  • Next by Date: Re: How to highlight the current line in NSTextView?
  • Previous by thread: Re: Private Method?
  • Next by thread: Re: Private Method?
  • Index(es):
    • Date
    • Thread