On Tue, Nov 26, 2002 at 07:50:53PM +0900, ts wrote:
> >>>>> "a" == ahoward  <ahoward / fsl.noaa.gov> writes:
> 
> a> rescue doesn't normally catch NameErrors
> 
>  This is changed in 1.7
> 
> pigeon% /usr/bin/ruby -e 'a = [].to_str rescue "[]"; p a'
> -e:1: undefined method `to_str' for []:Array (NameError)
> pigeon% 
> 
> pigeon% ruby -ve 'a = [].to_str rescue "[]"; p a'
> ruby 1.7.3 (2002-11-17) [i686-linux]
> "[]"
> pigeon% 

What was the reasoning behind this change?

Paul