From: Nathaniel Talbott Date: 2003-07-22T04:51:07+09:00 Subject: Re: testunit, exit status and at_exit Yukihiro Matsumoto [mailto:matz@ruby-lang.org] wrote: > In message "Re: testunit, exit status and at_exit" > on 03/07/21, "Nathaniel Talbott" writes: > > |I may get it merged before the 1.8 release; if not, expect it for sure > |in 1.8.1. > > OK. But you need to help me to clarify the problem. What if > there's multiple END proc that calls "exit"? Can I choose > arbitrary one? I was wondering if that would be a problem. For my situation, either of the following would work: 1. The last exit status that is set wins. So if there are multiple END procs, and they all set the exit status (by calling #exit), the last one registered wins (END procs are called in the order they are defined, correct?) 2. Calling #exit in an END proc does nothing, but calling #exit! immediately terminates with the given status (skipping any remaining END procs). From my perspective either one of these will work; others may have a preference and/or additional ideas. Thanks, Nathaniel <:((><