From: Jim Freeze Date: 2002-12-06T23:45:07+09:00 Subject: Re: on error resume next On Friday, 6 December 2002 at 21:00:28 +0900, Gavin Sinclair wrote: > From: "Greg Millam" > > > > > Ruby cannot simulate this behavior. > > > > You are trying to force ruby to become what you know, instead of learning > > ruby's different methods of doing the same thing. > > > > The 'def raise(*args)...' solution given is pretty much what you want, > > and if you want it clobal then $ignore_errors = 1. That it's syntax is > > different than VBs is a nonissue... If you want VB, stick with VB, don't > > turn ruby into VB. > > Couldn't agree more. > > > Of course, it could help if you explained more what 'On Error Resume Next' > > does ... does it make the script completely ignore all raised errors? does > > it affect all errors? system errors? errors raised by you? > If I remember from my VB days, the Resume Next resumes at the next line/statement. Ruby would have an issue implementing this since it is not line based. To emulate this in ruby, one would have to use goto's or nested resumes, which are not possible. -- Jim Freeze ---------- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- Dick Brandon