[MacRuby] #1113: unexpected behaviour with enumerateObjectsUsingBlock

MacRuby ruby-noreply at macosforge.org
Thu Jan 13 17:27:08 PST 2011


#1113: unexpected behaviour with enumerateObjectsUsingBlock
----------------------------------+-----------------------------------------
 Reporter:  al_skipp@…            |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:  MacRuby 1.0          
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
Changes (by lsansonetti@…):

  * milestone:  => MacRuby 1.0


Comment:

 The problem is because the calling stub uses a global variable to store
 the proc and later call it. However, as calling stubs are cached by type,
 in this condition (messaging the same block method twice) overrides the
 global variable.

 This problem must be fixed in 1.0.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1113#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list