From: Paul Brannan Date: 2002-11-27T23:55:38+09:00 Subject: Re: Default value of property On Tue, Nov 26, 2002 at 07:50:53PM +0900, ts wrote: > >>>>> "a" == ahoward 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