From: matz@... (Yukihiro Matsumoto) Date: 2003-05-31T00:43:02+09:00 Subject: Re: local variable and local variable in block behave differently Hi, In message "Re: local variable and local variable in block behave differently" on 03/05/30, Brian Candler writes: |> 1.times do |> if false |> a = "" |> else |> 1.times { a = "a" } |> end |> puts defined? a # => local-variable(in-block) |> puts a # => nil |> end | |OK, that's weird... I would have thought that the assignment to 'a' in the |inner block would have bound to the 'a' brought into existence in the outer |block, but it hasn't. Maybe a bug. Let me check. matz.