From: Mark Slagell Date: 2000-09-01T07:09:57+09:00 Subject: [ruby-talk:4709] Re: Two observations My eval.rb was derived from the version in matz's tutorial ... I'd better look at the current one and see what else has changed! And yes I see now that "rescue Exception" gets tripped by eval("exit"), which is undesirable. Where are the subclasses of Exception documented? I don't see it in the lib reference. Dave Thomas wrote: > Mark Slagell writes: > > > Ok, "rescue Exception" gives the behavior I was looking for from "rescue". That's easy > > enough. > > The latest eval.rb is already fixed. It has > > begin > print eval(line).inspect, "\n" > rescue ScriptError, StandardError > $! = 'exception raised' unless $! > print "ERR: ", $!, "\n" > end > > Regards > > Dave