Re: [MacRuby-devel] enumerateObjectsUsingBlock

2011-01-12 Thread Laurent Sansonetti
Hi Alan, Ouch, you may have found a bug… can you file a ticket? I will look into it for the upcoming release. Thanks, Laurent On Jan 12, 2011, at 1:03 AM, Alan Skipp wrote: > Hi everyone, > Below is a reduction of a problem I've noticed when using > 'enumerateObjectsUsingBlock' from inside a

[MacRuby-devel] enumerateObjectsUsingBlock

2011-01-12 Thread Alan Skipp
Hi everyone, Below is a reduction of a problem I've noticed when using 'enumerateObjectsUsingBlock' from inside a proc. The line which causes trouble is: [1,2,3].enumerateObjectsUsingBlock( Proc.new { |o, i, s| puts "inner enumeration #{o}" } ) If this line is replaced with: [1,