[MacRuby-devel] [MacRuby] #745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And p_find_all causes an error.

MacRuby ruby-noreply at macosforge.org
Sat Jun 12 13:21:52 PDT 2010


#745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And
p_find_all causes an error.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 I have not understood whether a explanation of "Caveat: Local Variables"
 is correct.

 {{{
 $ cat gcd.rb
 require 'dispatch'

 n = 0
 job = Dispatch::Job.new { n += 42 }
 job.join
 p n # => 0
 }}}

 {{{
 $ macruby gcd.rb
 42
 }}}

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



More information about the MacRuby-devel mailing list