From: Austin Ziegler Date: 2002-12-08T04:06:02+09:00 Subject: Re: on error resume next On Sun, 8 Dec 2002 02:15:43 +0900, MikkelFJ wrote: >> On Friday, 6 December 2002 at 21:00:28 +0900, Gavin Sinclair >> wrote: >>> From: "Greg Millam" >> 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. > Would it help to think of it as ResumeNextStatement instead of > ResumeNextLine? No, because it's still nondeterministic in behaviour. (It's something of an implied "goto".) If the behaviour is really needed, better to use callcc to explicitly handle it; IMO, it's probably not really needed and the perceived need can be eliminated by a little judicious restructuring of the design and code. -austin -- Austin Ziegler, austin@halostatue.ca on 2002.12.07 at 14.03.25