From: Ara.T.Howard@... Date: 2004-08-27T00:00:36+09:00 Subject: Re: POLS - exception comparisons On Thu, 26 Aug 2004, Robert Klemme wrote: > > def foo(file_name, flag) > if flag > io = File.open( file_name ) > # use io > else > io = File.open( file_name ) > # use io > end > end > > Now, if the file can't be opened (say, because the directory is missing) the > error will emerge at the same source location (presumable somewhere in File) > and it has the same reason, but backtraces will be different. So it's > probably better to just compare the first entry of the backtrace. interesting - i can see your point. i wonder what other issues there are... -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it. | --Dogen ===============================================================================