Re: How to implement readonly property
Re: How to implement readonly property
- Subject: Re: How to implement readonly property
- From: Rick Mann <email@hidden>
- Date: Sat, 08 Dec 2012 20:56:15 -0800
On Dec 8, 2012, at 18:51 , Greg Parker <email@hidden> wrote:
> Use dispatch_once(). It is shorter, simpler, and more obviously correct. The memory barrier implementation may also be correct, but why take the risk?
What about for similar non-static properties?
--
Rick
_______________________________________________
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