On Mon, Feb 03, 2003 at 12:12:01AM +0900, Yukihiro Matsumoto wrote:
> Hi,
> 
> In message "Re: Local variables & blocks"
>     on 03/02/03, ts <decoux / moulon.inra.fr> writes:
> 
> |B>   Thread.new do
> |B>     i = 0
> |B>     .. is 'i' local to this thread, or is it shared between them?
> |B>   end
> |
> | Actually local to the thread, with the proposition shared.
> 
> In the current behavior.  'i' will not be block local, so that it will
> be shared in my proposal.

This is one of the cases where I really want to be able to create
locals.

Having to do
def local
  yield
end

Thread.new do 
  local do |i|
    i = 0
  end
end

is nothing but a declaration in disguise, and a very wordy one indeed.

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

MS-DOS, you can't live with it, you can live without it.
	-- from Lars Wirzenius' .sig