From: nobu.nokada@... Date: 2002-03-23T13:20:06+09:00 Subject: Re: Thought on "abort with message" RCR Hi, At Fri, 22 Mar 2002 03:31:41 +0900, Bob Alexander wrote: > I'm happy to see the changes in 1.7! Not having seen the details, let me > just say how I hope it is implemented: > > - "abort" with no message leaves SystemExit#message empty. > > - "exit" leaves SystemExit#message empty. > > - The default top level handler for SystemExit prints the message to > $stderr unless it is empty, then exits as it already does. (The abort method > itself does not print anything, allowing programs to catch the exception and > do something else.) Looks consistent. And SystemExit#mesage is not very useful right now. For the rest, whether "abort" can be ignored or not. > - the RCR timidly suggests that it would be nice to have an optional > message parameter (2nd parameter) for "exit", too. It seems that this would > be useful and compatible with existing code. ZnZ proposed same in ruby-dev too. > > p $!.status # => 0 > > Great. On my 1.6.7, it of course produces "undefined method `status' for > #". Sorry, it was 1.7 feature. -- Nobu Nakada