Actions
Bug #1322
closeddefine_method scope bug
Description
=begin
a = 1
Object.send :define_method, :x do
lambda do
p a
a = 2
p a
end.call
end
x(nil)
p a
output is 1,2,1 instead of 1,2,2
details and possible fix: http://coderrr.wordpress.com/2009/03/29/ruby-18-define_method-scope-bug/
=end
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0