From: Michael Neumann Date: 2001-11-18T00:53:08+09:00 Subject: [ruby-talk:25712] Re: Strange behaviour of "rescue" chad fowler wrote: > > --- Michael Neumann wrote: > > I guess the reason for it is that rescue in the > > one-liner form does not > > take an exception class (it assumes RuntimeError) so > > that the latter > > example would be equivalent to: > > > > begin > > exit rescue > > SystemExit > > end > > > > Is there a short form for the above? > > > Does the following work as you expect? > > begin exit; rescue SystemExit; end Thanks, that's it. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de