[MacRuby] #1437: Object#method.call doesn't pass block argument
#1437: Object#method.call doesn't pass block argument --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------------+------------------------------------- If I have a class Foo, with an instance method bar that yields to a block, in MRI I can do this: Foo.new.method(:bar).call() { puts "something" } And the block will be called. But in MacRuby, the block is not passed to the method by .call(). I've put together a simple example: https://gist.github.com/1675279 -- Ticket URL: <http://www.macruby.org/trac/ticket/1437> MacRuby <http://macruby.org/>
#1437: Object#method.call doesn't pass block argument --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: Component: MacRuby | Resolution: fixed Keywords: | --------------------------------------+------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed Comment: Please use MacRuby latest or nightly. {{{ $ ruby19 -v blocks.rb ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0] in the block 1 in the block 2 $ macruby -v blocks.rb MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] Foo#bar: please give me a block :( Foo#bar: please give me a block :( $ macruby -v blocks.rb MacRuby 0.12 (ruby 1.9.2) [universal-darwin11.0, x86_64] in the block 1 in the block 2 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1437#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby