Re: How to implement readonly property

2012-12-09 Thread Jean-Daniel Dupas
Le 9 déc. 2012 à 02:27, Richard Heard a écrit : > Greg, > > So, from what you are saying, either of these snippets should be valid, right? > >> +(id)sharedInstance{ >>static id _sharedInstance = nil; >> >> … >>OSMemoryBarrier(); >>return _sharedInstance; >> } OSMemoryBarrier

Re: How to implement readonly property

2012-12-09 Thread Ken Thomases
On Dec 9, 2012, at 1:27 AM, Kyle Sluder wrote: > If dispatch_once() really is unsuitable for use with a dispatch_once_t > stored in Objective-C instance storage, then the correct example in the > paper I've cited might be a sufficient workaround. I thought we had established that, in all sane use

Re: How to implement readonly property

2012-12-09 Thread Kyle Sluder
On Dec 9, 2012, at 6:53 AM, Ken Thomases wrote: > On Dec 9, 2012, at 1:27 AM, Kyle Sluder wrote: > >> If dispatch_once() really is unsuitable for use with a dispatch_once_t >> stored in Objective-C instance storage, then the correct example in the >> paper I've cited might be a sufficient workar

Re: How to implement readonly property

2012-12-09 Thread Ken Thomases
On Dec 9, 2012, at 10:37 AM, Kyle Sluder wrote: > On Dec 9, 2012, at 6:53 AM, Ken Thomases wrote: > >> On Dec 9, 2012, at 1:27 AM, Kyle Sluder wrote: >> >>> If dispatch_once() really is unsuitable for use with a dispatch_once_t >>> stored in Objective-C instance storage, then the correct exampl