That's odd. I would still use freeze more rubyish... :)
Terry Moore
On 22/10/2011, at 6:41 PM, Michael Johnston wrote:
> Thanks, I am using:
>
> results = NSArray.arrayWithArray(worker_results)
>
> which although it reports true for is_a?(NSMutableArray) is immutable.
>
> Cheerio,
>
> Micha
On Saturday, October 22, 2011 at 1:35 AM, Michael Johnston wrote:
> When I need to get a queue-protected result into a local in code that is
> concurrent (so I can't use an ivar) is a pointer the best (only) way to get
> the result of a sync block? Assuming I don't want to factor out a method
>
> Hmm thanks, I didn't realize we had a google groups mirror. I'm wondering if
> we shouldn't just move there since it's much easier to use and maintain than
> macosforge.
> Thoughts, ideas, suggestions?
I'd personally prefer that a lot over a mailing list! In trying to work around
this, I've t
Very strange, your example works for me in irb too. Irb must do something odd
with locals. Have you tried this outside of irb, though? If you wrap with a
method def'n in irb, it behaves differently, and the fact that locals are
copied has been discussed lots on the list. But Laurent (I think) sa
Hi,
I installed 0.11 using the installer pkg. The install seemed to work fine.
However, when I run my app I get a message that wasn't there with 0.10 or with
an earlier build of 0.11.
Here's the console message:
Membership(4727,0x1043bf000) malloc: *** auto malloc[4727]: error: GC operation
Ah, indeed, there are subtle differences with lvars at the top-level in IRB vs
in a method scope. Not sure if I'd consider this a bug or not, but to
illustrate:
>> result = nil
=> nil
>> Dispatch::Queue.concurrent.sync do
>> result = true
>> end
=> nil
>> result
=> true
>> def test
>> result