From: Yukihiro Matsumoto Date: 2011-12-09T17:45:50+09:00 Subject: [ruby-core:41564] Re: [ruby-trunk - Bug #5730][Open] Optinal block parameters assigns wrong Hi, In message "Re: [ruby-core:41562] Re: [ruby-trunk - Bug #5730][Open] Optinal block parameters assigns wrong" on Fri, 9 Dec 2011 17:41:10 +0900, "Haase, Konstantin" writes: |What would be the wantend behavior of this code: | | def show(element) | proc { |a = 1, b = 2| [a, b] }.call(element) | end | | a = 2 | show(a) | | b = [2] | show(b) use lambda. matz.