From: ahoward Date: 2003-02-05T14:25:52+09:00 Subject: Re: Local variables & blocks On Wed, 5 Feb 2003 nobu.nokada@softhome.net wrote: > > > But I still hate shadowing, strong enough to raise warning. > Although I agree that shadowing is one of the worst manners, why such strong feelings? i do this all the time and think it's very clear : n = ARGV.shift n.times do |i| Thread.new (i) do |i| ... end end eg. i _like_ shadowing when the shadow'd variable is the _same_thing_ and think this makes much more sense than : n = ARGV.shift n.times do |i| Thread.new (i) do |j| ... end end shadowing is not _always_ bad IMHO. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================