[MacRuby] #795: macirb: GCD inconsistently copies local variables inside blocks

MacRuby ruby-noreply at macosforge.org
Sun Oct 3 05:49:37 PDT 2010


#795: macirb: GCD inconsistently copies local variables inside blocks
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabhakar@…          |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  critical                    |   Milestone:                       
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------
Changes (by eloy.de.enige@…):

  * owner:  eloy.de.enige@… => lsansonetti@…


Comment:

 I hang my head in shame, for not being subscribed to the tickets ML and
 didn't know about this ticket… Anyways, this happens when it’s eval'ed:

 {{{
 % macruby -e 'eval("i=0; Dispatch::Queue.new(\"i\").sync {i = 42}; puts
 i")'
 42
 }}}

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



More information about the macruby-tickets mailing list