[MacRuby] #837: Abort occurs that it is displayed "unrecognized dispatch arg node: 76 (NODE_BLOCK_PASS)".
MacRuby
ruby-noreply at macosforge.org
Mon Aug 9 17:09:30 PDT 2010
#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/>
More information about the macruby-tickets
mailing list