From: "Iñaki Baz Castillo" Date: 2008-08-14T03:33:46+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 Martes, 12 de Agosto de 2008, David A. Black escribió: > If you want to use a non-parameter inside a block and have it not > clobber an outside variable, you can declare it as a local variable by > putting it after a semi-colon in the parameter list: > >    {|x,y,z;a| a = 1 }    # a is not bound to any block args but is >                          # local to the block Could I use that to avoid the problem if I do this: Thread.new(request) { |request| ... } This is a big problem since the "request" into the block points to the request outside, so each thread share it (dangerous). This is why I use: Thread.new(request) { |req| ... } Could I use this? Thread.new(request) { |;request| ... } Thanks. -- Iñaki Baz Castillo