From: matz@... (Yukihiro Matsumoto) Date: 2001-05-30T09:16:42+09:00 Subject: [ruby-talk:15982] Re: Block arguments vs method arguments Hi, In message "[ruby-talk:15941] Re: Block arguments vs method arguments" on 01/05/30, Mike writes: |Except maybe the local variable shadowing. What does it mean exactly? def foo a = 25 b = [1,2,3,4] b.each{ p a} # print 1,2,3,4 in each line p a # outer "a" untouched; print 25 end |Will previously defined variables be availiable in the block? Yes. |Will variables created in the block be availiable outside? This is not directly related with <>. I haven't reached conclusion for this matter. I've explained this before (sorry, message number is not available now. I wish I had faster connection). |Is it planned in 1.7 or later? I don't think it would be available in 1.7. I want to introduce it along with nested scope enhancement. matz.