From: David Black Date: 2008-10-25T18:37:45+09:00 Subject: [ruby-core:19503] [Bug #682] Rogue values bound to block parameters Bug #682: Rogue values bound to block parameters http://redmine.ruby-lang.org/issues/show/682 Author: David Black Status: Open, Priority: Normal Category: core, Target version: 1.9.x Code: def block_args_unleashed yield(1,2,3,4,5) end block_args_unleashed {|a,b=1,*c,d,e| puts "Arguments:" p a,b,c,d,e } Output: 1 1 [3, 4] 5 "/usr/local/lib/ruby-1.9" # <-- ??? b binds incorrectly, but this report is about e, which is bound to an irrelevant string. Version: ruby 1.9.0 (2008-10-25 revision 18859) [i386-darwin9.5.0] ---------------------------------------- http://redmine.ruby-lang.org