From: Yukihiro Matsumoto Date: 2005-08-10T09:52:12+09:00 Subject: Re: [BUG] bug in variable assignment Hi, In message "Re: [BUG] bug in variable assignment" on Wed, 10 Aug 2005 07:14:37 +0900, Mauricio Fernandez writes: |I've found another problem with the other formal parameters: | |$ ./ruby -ve "a = 0; ->(a){}.call(2); p a" |ruby 1.9.0 (2005-08-09) [i686-linux] |0 | |The patch is somewhat larger this time: I also updated the unit tests |you added under test/ruby/test_lambda.rb. You shouldn't _fix_ this. Formal arguments to the anonymous function would not modify the external variables even when they are used outside. matz.