From: "Thomas B." Date: 2008-08-29T05:01:10+09:00 Subject: Re: Subtle bug with catch/throw. Am I missing something? Patrick Li wrote: > Ah I see. > Thank you. That would have taken me forever to find. > > Is there a way around this? Or is this basically a design issue? It's a design issue, if it is the case, because at the time the :exit is thrown, you're already out of idle(), so catching it there is definitely not what you intended. Probably you should catch the exception somewhere higher on the stack, from the method that, I guess, calls idle in a loop, or even higher. TPR. -- Posted via http://www.ruby-forum.com/.