Roger Pack wrote:
> Thoughts/feelings?

I don't think it gains you anything: in a fork the child process has a 
completely separate address space, so all variables are independent from 
the parent.

However in threads you may wish explicitly to copy a value, because it 
can change in the other thread. Especially;

while socket = server.accept
  Thread.new(socket) do |sk|
    .. do stuff with sk, because socket may change
  end
end
-- 
Posted via http://www.ruby-forum.com/.