From: "Iñaki Baz Castillo" Date: 2008-08-14T04:09:18+09:00 Subject: Re: Ruby 1.9: What to Expect by Sam Ruby @ OSCON 2008 Slide Deck Adapted S6/S9 (Single-Web Page) Version El Miércoles, 13 de Agosto de 2008, MenTaLguY escribió: > > Could I use this? > > Thread.new(request) { |;request| ... } > > In 1.9, you don't need to. Block parameters shadow local variables, > such that this works fine: Yeah, I know, that is why I asked a solution for 1.8 :) > Thread.new(request) { |request| ... } > > In 1.9, 'request' inside and outside the block are different variables. > > (I'm still not entirely sure I'd recommend calling them the same thing, > for readability's sake, but you can do it now...) Why? Thanks. -- Iñaki Baz Castillo