[MacRuby] #837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)".
#837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test.rb o = Object.new class << o; self; end.instance_eval do define_method(:[]=) {|*r, &b| b.call(r) } end r = nil eval <<-END o[&proc{|x| r = x }] = 1 END p r }}} Result of Ruby 1.9.1: {{{ $ ruby test.rb [1] }}} Result of Ruby 1.8.7: {{{ $ usr/bin/ruby test.rb test.rb:6: (eval):1: compile error (SyntaxError) (eval):1: syntax error, unexpected tAMPER, expecting ']' o[&proc{|x| r = x }] = 1 ^ (eval):1: syntax error, unexpected ']', expecting $end o[&proc{|x| r = x }] = 1 ^ }}} Result of MacRuby Trunk: {{{ $ macruby test.rb unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)zsh: abort macruby test.rb }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/837> MacRuby <http://macruby.org/>
#837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): This crashes since the compiler doesn't recognize inline blocks when compiling calls to #[]= (which is a different parser node). Fixing this problem would require a significant change in the compiler and I'm not sure if it's critical. -- Ticket URL: <http://www.macruby.org/trac/ticket/837#comment:1> MacRuby <http://macruby.org/>
#837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by emil@…): persists on trunk rev 4976 -- Ticket URL: <http://www.macruby.org/trac/ticket/837#comment:2> MacRuby <http://macruby.org/>
#837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by eloy.de.enige@…): * keywords: => #reduction -- Ticket URL: <http://www.macruby.org/trac/ticket/837#comment:3> MacRuby <http://macruby.org/>
#837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby Later Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby Later Comment: For later. -- Ticket URL: <http://www.macruby.org/trac/ticket/837#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby