ts <decoux / moulon.inra.fr> writes:

>  What it will do with ?
> 
>    b = 12
>    2.times do |i|
>       b = i
>       # ...
>       b := i
>    end
>    p b

And similarly with

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

   p b  #=> ?

I'm not convinced that the scope of a variable is determined by the
operations applied to it. I'd have thought that scope was intrinsic to
the variable itself.


Cheers


Dave