From: Robert Klemme Date: 2010-10-21T20:09:02+09:00 Subject: Re: about handling args in block Please do not top post. On Thu, Oct 21, 2010 at 12:38 PM, salamond wrote: > I wanner do this because this tree may not be a binary tree. > What if a node could link to a dozen nodes. In that case you would have a single collection (e.g. an Array) which stores child nodes! For that use Jesus's solution. > we have to something like this. > nodes.each do |node| >  node = nil > end This won't work because you only assign to the block parameter and leave "nodes" unchanged. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/