>>>>> "D" == Dave Thomas <Dave / PragmaticProgrammer.com> writes:

D>    b = 12
D>    2.times do |i|
D>      i.times {|b| ...}
D>    end

D>    p b  #=> ?

 For me, it give

pigeon% ruby
b = 12
2.times do |i|
   i.times {|b| }     
-:3: warning: shadowing variable `b'
end
p b
^D
12
pigeon% 


Guy Decoux