From: nobu.nokada@... Date: 2002-03-22T01:36:39+09:00 Subject: Re: Thought on "abort with message" RCR Hi, At Fri, 22 Mar 2002 00:53:54 +0900, Bob Alexander wrote: > The RCR: http://www.rubygarden.org/article.php?sid=193. It's implemented in 1.7. > It seems that the proper implementation would be that an > optional message argument for abort should NOT be printed by > the abort method. Rather, it should be the "message" of the > SystemExit exception that abort raises. The default handler > for SystemExit should be modified to print the exception's > message (if any) to $stderr before exiting. Normal "exit" also raises SystemExit with message "exit", what should be done? > BTW, while looking into this, I noticed that the exit status > is in the SystemExit object as a non-exposed instance > variable -- seems that it would be better if it were a public > "reader" method(?) Do you mean SystemExit#status? begin exit rescue SystemExit p $!.status # => 0 end begin abort rescue SystemExit p $!.status # => 1 end -- Nobu Nakada